mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-294 reduced object creation in the TcpReplication Selector
This commit is contained in:
@@ -273,14 +273,6 @@ final class TcpReplicator<K, V> extends AbstractChannelReplicator implements Clo
|
||||
* @throws IOException
|
||||
*/
|
||||
private int select() throws IOException {
|
||||
|
||||
// spin loop 100000 times
|
||||
for (int i = 0; i < SPIN_LOOP_COUNT; i++) {
|
||||
final int keys = selector.selectNow();
|
||||
if (keys != 0)
|
||||
return keys;
|
||||
}
|
||||
|
||||
return selector.select(selectorTimeout);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user