[infinispan-issues] [JBoss JIRA] (ISPN-4692) Optimize externalizer for FileListCacheValue

Gustavo Fernandes (JIRA) issues at jboss.org
Tue Sep 23 05:58:02 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-4692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005209#comment-13005209 ] 

Gustavo Fernandes commented on ISPN-4692:
-----------------------------------------

Regarding the String encodings, it uses {{ObjectOutput.writeUTF}} which will write two bytes containing the size of the string plus 1 byte per character if that character falls into the range \u0001 - \u007f (currently all filenames use chars on that range).
So I think it's not an issue, I'd leave as is 

> Optimize externalizer for FileListCacheValue
> --------------------------------------------
>
>                 Key: ISPN-4692
>                 URL: https://issues.jboss.org/browse/ISPN-4692
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Lucene Directory
>            Reporter: Sanne Grinovero
>            Assignee: Gustavo Fernandes
>
> There are two possible improvements to be applied to the Externalizer strategy applied by FileListCacheValue.
> - Each String is being encoded (and decoded) in UTF8 format, which is expensive. We should explore alternative encodings to String - at least for the wire format.
> - This is an ideal case for Delta operations: on each modification just one entry of the map is added / removed, but the whole HashMap is being transferred at each write.
> I'm not sure how we can combine the Delta interface with custom Externalizers, so that will need to be explored.
> We might want to avoid storing it as a value and resort to custom RPC commands to transfer the needed bits only, but we don't want to reimplement state transfer and CacheStore storage.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the infinispan-issues mailing list