Skip to content

Commit

Permalink
UPerf: marshaller adds 24 bytes to estimated size to avoid frequent r…
Browse files Browse the repository at this point in the history
…esizings of request buffer
  • Loading branch information
belaban committed Jul 19, 2016
1 parent 33c60b9 commit dbb79ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/perf/org/jgroups/tests/perf/UPerf.java
Expand Up @@ -456,7 +456,7 @@ public int estimatedSize(Object arg) {
if(arg == null)
return 2;
if(arg instanceof byte[])
return msg_size;
return msg_size + 24;
if(arg instanceof Long)
return 10;
return 50;
Expand Down

0 comments on commit dbb79ff

Please sign in to comment.