[
https://issues.apache.org/jira/browse/GEODE-9514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403265#comment-17403265
]
ASF subversion and git services commented on GEODE-9514:
--------------------------------------------------------
Commit 1969f3965092756fe1e5ba0dab89790f498c3893 in geode's branch
refs/heads/expireAuthentication from Darrel Schneider
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=1969f39 ]
GEODE-9514: optimize how Coder reads and writes "int" and "long" values (#6765)
* added appendAsciiDigitsToByteBuf to Coder so that ints and longs
can more efficiently by added to a ByteBuf. The goal was to reduce
the number of short lived object allocations.
* longToBytes and intToBytes now use the new conversion code
and for small numbers canonical arrays are used
* bytesToLong optimized to not convert the byte array to a String
* getBulkStringResponse now uses getIntegerResponse
This method no longer truncates a Long to an Integer
> reduce object allocations when Coder writes "int" and "long" values
> -------------------------------------------------------------------
>
> Key: GEODE-9514
> URL: https://issues.apache.org/jira/browse/GEODE-9514
> Project: Geode
> Issue Type: Improvement
> Components: redis
> Reporter: Darrel Schneider
> Assignee: Darrel Schneider
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.15.0
>
>
> Refactor the Coder.getIntegerResponse(ByteBuf buffer, long l) method to write
> byte string representation to avoid allocating transient char[], String, and
> byte[]. The existing allocations accounted for 17% of objects requiring GC.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)