News for hackers. Stuff that matters.
Re:Why HN was slow and how Rtm fixed it by kujawa on Wednesday January 19, 2011 @02:37PM (#2120941)
Read C10K? Both select() and poll() have this problem internally. You have to use one of the more advanced techniques available if you really want to scale. epoll(), kqueue() or friends.
Re:Why HN was slow and how Rtm fixed it by wmf on Wednesday January 19, 2011 @03:07PM (#2121055)
Based on RTM's description, it sounds like even select() would be a huge improvement. HN needs to solve the C100 problem before worrying about C10K.
Re:Why HN was slow and how Rtm fixed it by jey on Wednesday January 19, 2011 @03:00PM (#2121028)
Rtm's phrasing implies that MzScheme is making a syscall for each socket in turn, so it sounds like it isn't even using the basic select() or poll().
Re:Why HN was slow and how Rtm fixed it by mahmoudimus on Wednesday January 19, 2011 @05:31PM (#2121535)
I thought the same exact thing when I read rtm's description. I thought to myself select()/poll() is much more efficient, and it sounds like that's not what's implemented underneath.
Re:Why HN was slow and how Rtm fixed it by caf on Wednesday January 19, 2011 @08:31PM (#2122143)
poll() is slightly better than select(), because you only have to iterate over the file descriptors that were passed, rather than from 0 to nfds.
Re:Why HN was slow and how Rtm fixed it by maw on Thursday January 20, 2011 @10:17AM (#2123869)
It doesn't hurt that its interface is far more pleasant to use than select's, either.