3 ms·
Linux has a similar limitation with FD_SETSIZE and select() --- which I believe comes from the implementation using an array index operation instead of a more c
by userbinator 6y ago
Linux has a similar limitation with FD_SETSIZE and select() --- which I believe comes from the implementation using an array index operation instead of a more complex data structure due to performance reasons.
- throwaway2037 6y agoI'm confused by this comment. It appears to imply that FD_SETSIZE is also very small (63?) on Linux. To be clear: I am no an expert on Linux kernal params, nor select() and its friends. However, recent Linux kernels appears to have FD_SETSIZE about 1024. Red Hat says: <<FD_SETSIZE is hardcoded to 1024 in /usr/include/bits/typesizes.h and can not be changed.>> Source: https://access.redhat.com/solutions/488623 https://access.redhat.com/solutions/488623 If I misunderstand, please let me know.
- userbinator 6y agoI wasn't implying it's also small, but that it's a fixed value too.
- throwaway2037 6y agoVery good. Thank you to clarify.