[
https://issues.apache.org/jira/browse/QPID-7518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15673913#comment-15673913
]
Alex Rudyy commented on QPID-7518:
----------------------------------
Taking that NBC#_bufferedSize can be accessed and updated from multiple IO
threads, should it be declared volatile?
> [Java Broker] Reduce cost of calculating size of buffered data in
> NonBlockingConnection
> ---------------------------------------------------------------------------------------
>
> Key: QPID-7518
> URL: https://issues.apache.org/jira/browse/QPID-7518
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Reporter: Rob Godfrey
> Fix For: qpid-java-6.2
>
>
> Profiling shows that we spend a lot of time iterating over QpidByteBuffers to
> establish the size of the the buffered data. We can instead keep track of
> this as we add buffers and write data through the delegate
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]