hashrocket / websocket-shootout

A comparison of websocket servers in multiple languages and frameworks
MIT License
428 stars 76 forks source link

clojure: small optimizations #4

Closed grammati closed 8 years ago

grammati commented 8 years ago

Thanks for doing this comparison!

Here are a couple of small changes for the clojure server, which may or may not help its performance.

1) Only JSON-encode the message once for broadcast, rather than each time around the loop.

2) More server threads. httpkit defaults to only 4 threads. Using more might not make any difference, since it's async I/O, but since it's easy to do, I thought it would be worth a try.

jackc commented 8 years ago

Good calls. Thanks!