jira-importer opened a new issue, #1430:
URL: https://github.com/apache/httpcomponents-core/issues/1430

   **[Tony 
Poppleton](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=moqtada)**
 opened 
**[HTTPCORE-214](https://issues.apache.org/jira/browse/HTTPCORE-214?redirect=false)**
 and commented
   
   The CharArrayBuffer expand() method will sometimes double the size of the 
buffer array.
   
   However looking at the source code for ArrayList in the Java utils package 
reveals that they do:
   int newCapacity = (oldCapacity * 3)/2 + 1;
   
   Would this be more efficient in CharArrayBuffer (in practice)?
   
   The standard benchmarks should be run to ascertain if this is the case.
   
   
   ---
   
   1 votes, 1 watchers
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to