[ https://issues.apache.org/jira/browse/THRIFT-765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905933#action_12905933 ]
Bryan Duxbury commented on THRIFT-765: -------------------------------------- I just had a look at this patch and it seems really promising. The performance improvement is great (cuts about 30% from encoding and 60% from decoding) so I'm encouraged. I'm thinking that maybe we should give the Random instance in the test a consistent seed so that the test is deterministic. Do you think we should try some invalid strings as well? It should just lead to encoding exceptions, right? > Improved string encoding and decoding performance > ------------------------------------------------- > > Key: THRIFT-765 > URL: https://issues.apache.org/jira/browse/THRIFT-765 > Project: Thrift > Issue Type: Improvement > Components: Java - Library > Affects Versions: 0.2 > Reporter: Bryan Duxbury > Assignee: Bryan Duxbury > Fix For: 0.4 > > Attachments: thrift-765-redux-v2.patch, thrift-765-redux.patch, > THRIFT-765.patch, thrift-765.patch > > > One of the most consistent time-consuming spots of Thrift serialization and > deserialization is string encoding. For some inscrutable reason, > String.getBytes("UTF-8") is slow. > However, it's recently been brought to my attention that DataOutputStream's > writeUTF method has a faster implementation of UTF-8 encoding and decoding. > We should use this style of encoding. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.