[
https://issues.apache.org/jira/browse/AWF-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tony Stevenson moved DEFT-65 to AWF-39:
---------------------------------------
Reporter: Niklas Gustavsson
Key: AWF-39 (was: DEFT-65)
Project: Apache AWF (was: Deft)
> Optimize ByteBuffer usage in critial write path
> -----------------------------------------------
>
> Key: AWF-39
> URL: https://issues.apache.org/jira/browse/AWF-39
> Project: Apache AWF
> Issue Type: Bug
> Reporter: Niklas Gustavsson
>
> #63 (Asynchronous write) introduced alot of ByteBuffer usage. Optimize this
> usage.
> Hint: (ByteBuffer usage in) HttpResponse.[write, flush, finish,
> ensureCapacity, allocate, prepend]
> BB reuse (e.g single bb used for both read and write), key methods: flip() //
> prepare bb for writing
> when write is done, if buffer has remaining => compact() // make room for
> more data be read in
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira