You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Sangjin Lee (JIRA)" <ji...@apache.org> on 2008/08/04 21:22:44 UTC

[jira] Closed: (ASYNCWEB-23) reduce overhead of ByteBuffer.putString() in HTTP request encoding

     [ https://issues.apache.org/jira/browse/ASYNCWEB-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sangjin Lee closed ASYNCWEB-23.
-------------------------------

       Resolution: Fixed
    Fix Version/s: client-1.0.0

Closed.

> 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
>             Fix For: client-1.0.0
>
>
> 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.