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.
- Re: Memory usage skyrocketed with nim 0.18.0 (in my async tcp se... jcosborn
- Re: Memory usage skyrocketed with nim 0.18.0 (in my async t... aguspiza2
- Re: Memory usage skyrocketed with nim 0.18.0 (in my asy... jcosborn
- Re: Memory usage skyrocketed with nim 0.18.0 (in my... aguspiza2
- Re: Memory usage skyrocketed with nim 0.18.0 (i... aguspiza2
- Re: Memory usage skyrocketed with nim 0.18... dom96
- Re: Memory usage skyrocketed with nim 0.18... aguspiza2
- Re: Memory usage skyrocketed with nim 0.18... aguspiza2
- Re: Memory usage skyrocketed with nim 0.18... aguspiza2
- Re: Memory usage skyrocketed with nim 0.18... dom96
- Re: Memory usage skyrocketed with nim 0.18... aguspiza2
