FRAG2: get rid of copy when using an offset and length in a message
-------------------------------------------------------------------
Key: JGRP-802
URL:
https://jira.jboss.org/jira/browse/JGRP-802
Project: JGroups
Issue Type: Task
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Minor
Fix For: 2.7
Currently, fragment() calls Message.getBuffer() which returns a copy of a message if
offset != 0. This copy is not necessary, as we can compute the fragment list starting with
an offset (Util.computeFragOffsets()).
This is not a frequent use case, as most users probably pass a new buffer into
Channel.send(Message), and don't use offsets. However, if they do, we create a
superfluous copy !
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira