reduce overhead of ByteBuffer.putString() in HTTP request encoding
------------------------------------------------------------------
Key: ASYNCWEB-23
URL: https://issues.apache.org/jira/browse/ASYNCWEB-23
Project: Asyncweb
Issue Type: Improvement
Components: Client
Affects Versions: client-1.0.0
Reporter: Sangjin Lee
Assignee: Sangjin Lee
Priority: Minor
Currently, every single fragment is added via ByteBuffer.putString() when we
encode HTTP requests. A slightly better version is to build up the string
using simple StringBuilder.append() operations, and do proper charset encoding
in a single ByteBuffer.putString() call. Profiling indicates this results in
modest improvement in CPU utilization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.