You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by GitBox <gi...@apache.org> on 2020/04/18 07:39:42 UTC

[GitHub] [httpcomponents-core] ufolr edited a comment on issue #195: Fix CharArrayBuffer.subSequence(beganIndex, endIndex) to return right result.

ufolr edited a comment on issue #195: Fix CharArrayBuffer.subSequence(beganIndex,endIndex) to return right result.
URL: https://github.com/apache/httpcomponents-core/pull/195#issuecomment-615688514
 
 
   @ok2c Yep. I saw that performance waste of performance. So I make **CharArrayBuffer**  can reuse the existing char array by adding an offset pos tag. Now, if there is no write option, the **CharArrayBuffer** will not do allocation or array copy. Just like a **HeapCharBuffer** do.   
   Too do this, I add an constructor `CharArrayBuffer(final char[] b, final int off, final int len)` to `CharArrayBuffer`. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org