Skip to content

Commit 7a07053

Browse files
author
Myron Scott
authored
Merge pull request #1326 from myronkscott/fix_perf
revert change resulting in performance degradation
2 parents 210c1e5 + 70f5fe4 commit 7a07053

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

common/src/main/java/com/tc/net/core/TCConnectionImpl.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ private boolean buildWriteContextsFromMessages(boolean failfast) {
394394
ArrayList<TCActionNetworkMessage> currentBatch = new ArrayList<>();
395395
int batchSize = 0;
396396
int batchMsgCount = 0;
397-
boolean batchMode = false;
398397
TCNetworkMessage element = this.writeMessages.poll();
399398

400399
while (element != null) {
@@ -435,13 +434,7 @@ private boolean buildWriteContextsFromMessages(boolean failfast) {
435434
}
436435
}
437436

438-
try {
439-
element = (batchMode) ? this.writeMessages.poll(20, TimeUnit.MICROSECONDS) : this.writeMessages.poll();
440-
batchMode = true;
441-
} catch (InterruptedException ie) {
442-
Thread.currentThread().interrupt();
443-
element = null;
444-
}
437+
element = this.writeMessages.poll();
445438
}
446439

447440
if (MSG_GROUPING_ENABLED && batchMsgCount > 0) {

0 commit comments

Comments
 (0)