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

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

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

GEODE-6692: canonicalize deserialization of empty string (#3513)

* added unit test to confirm that DataSerializer.readString
canonicalizes the empty string.

* deserialization of an empty string no longer allocates a new String instance


> DataSerializer.readString can be optimized for zero length strings
> ------------------------------------------------------------------
>
>                 Key: GEODE-6692
>                 URL: https://issues.apache.org/jira/browse/GEODE-6692
>             Project: Geode
>          Issue Type: Improvement
>          Components: serialization
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Major
>              Labels: performance
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> DataSerializer.readString still allocates an instance of String when the 
> string being deserialized is an empty string. If instead it just returned the 
> canonical "" it would save some object allocations.



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

Reply via email to