public final class SelectorOptimizer
extends Object
The SelectorOptimizer optimizes the Selector so less litter is being created.
The Selector uses a HashSet, but this creates an object for every add of a
selection key. With this SelectorOptimizer a SelectionKeysSet, which contains
an an array, is being used since every key is going to be inserted only once.
This trick comes from Netty.