thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Geyer (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (THRIFT-5133) netstd: TCompactProtocol string allocation improvement
Date Thu, 19 Mar 2020 22:29:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jens Geyer resolved THRIFT-5133.
--------------------------------
    Fix Version/s: 0.14.0
         Assignee: Mikel Blanchard
       Resolution: Fixed

> netstd: TCompactProtocol string allocation improvement
> ------------------------------------------------------
>
>                 Key: THRIFT-5133
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5133
>             Project: Thrift
>          Issue Type: Bug
>          Components: netstd - Library
>    Affects Versions: 0.13.0
>            Reporter: Mikel Blanchard
>            Assignee: Mikel Blanchard
>            Priority: Major
>             Fix For: 0.14.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> WriteStringAsync & ReadStringAsync in TCompactProtocol each allocate a buffer to
store UTF8 bytes when converting to and from strings. This buffer has to be cleaned up by
the garbage collector (at some point), which can lead to a lot of pressure on the hosting
process in high-volume scenarios. Basically a lot of short-lived buffers are being emitted
by the library. It's an easy tweak to use a pooled buffer for this work which greatly improves
the performance under load.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message