If performance is the reason to avoid allocations, my suggestion is to allocate 
some initial amount which will be good for 99% of use cases and if that initial 
amount is reached and maxFD is bigger, reallocate one more time the full maxFD 
and copy from initial seq. This allocation will only affect to whoever really 
needs maxFD descriptors.

Reply via email to