[ 
https://issues.apache.org/jira/browse/GEODE-6698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16832861#comment-16832861
 ] 

ASF subversion and git services commented on GEODE-6698:
--------------------------------------------------------

Commit 45376d1c357fe6eb117eb51752f9b93f9ba6fe40 in geode's branch 
refs/heads/develop from Darrel Schneider
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=45376d1 ]

GEODE-6698: optimize region name deserialization in client/server messaging 
(#3535)

Added getCachedString to Part that will check a cache
so that frequently used strings (like region names)
only need to be deserialized once. Subsequent times
will check the cache using a ByteArrayKey wrapping the
serialized bytes.


> Reduce transient String creation in Get70.cmdExecute
> ----------------------------------------------------
>
>                 Key: GEODE-6698
>                 URL: https://issues.apache.org/jira/browse/GEODE-6698
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Jacob S. Barrett
>            Assignee: Darrel Schneider
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Get70.cmdExecute around Lin 93 calls Part.getString() to get the region name. 
> Since the region names are a relatively finite set of values we could save 
> lots of allocations by interning these byte[] to String mappings and return a 
> perviously allocated String for the region name.
> This method is called for every client/server get operation. All the other 
> region operations also make similar conversion to get region name. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to