[
https://issues.apache.org/jira/browse/DEFT-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071415#comment-13071415
]
Michele ZuccalĂ commented on DEFT-167:
--------------------------------------
After further research I found that using the method
CharsetDecoder.decode (ByteBuffer)
there is no need to reset, decode and flush () because it's automatic.
So I think that with the current implementation of the HTTP parser, my first
patch is just fine.
I just have to change the charsets in US_ASCII and ISO-8859-1.
> Use CharsetDecoder to convert ByteBuffer to String
> --------------------------------------------------
>
> Key: DEFT-167
> URL: https://issues.apache.org/jira/browse/DEFT-167
> Project: Deft
> Issue Type: Improvement
> Reporter: Michele ZuccalĂ
> Priority: Minor
>
> My research has shown that CharsetDecoders are much faster for the conversion
> of a ByteBuffer into a String.
> Take a look here for this simple improvement:
> https://github.com/ilmich/deft/commit/6914e922051d4e0e050a58daea2790091c236b7c
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira