Skip to content

Commit 1504752

Browse files
committed
getLength() is faster than size()
1 parent 4627516 commit 1504752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/jgroups/protocols/PerDestinationBundler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void run() {
193193
}
194194

195195
protected void addAndSendIfSizeExceeded(Message msg) {
196-
int size=msg.size();
196+
int size=msg.getLength();
197197
if(count + size >= max_size) {
198198
sendBundledMessages();
199199
num_sends_due_to_max_size.increment();

0 commit comments

Comments
 (0)