4 ms·
Thread spawning should only become a problem for very high concurrent client counts (ie, large N). How many concurrent clients did this program have? When I ra
by frankzinger 7y ago
Thread spawning should only become a problem for very high concurrent client counts (ie, large N). How many concurrent clients did this program have?
When I ran benchmarks to compare a thread-per-client model to a single-threaded, event-based one, the single-threaded throughput was around 2 to 3 times higher for as few as 1000 clients.
- iforgotpassword 7y agoNot many, slightly above 800 on average iirc. It wasn't even a bottleneck or anything, I was just curious how much impact it would make. That's also why I didn't bother trying to change it to event based with single thread or one thread per CPU core, as that would've been way more work than two afternoons so just not justified.