It's easy to forget that streams are in fact an order of magnitude slower than regular ol' function calls. Use 'em sparsely kids
-
-
Replying to @yoshuawuyts
@yoshuawuyts you may be interested in@dominictarr's `pull-stream`: https://github.com/dominictarr/pull-stream-examples/blob/master/pull.js …. async object streams using only function calls.2 replies 0 retweets 2 likes -
Replying to @ahdinosaur
@ahdinosaur@yoshuawuyts TODO: benchmark the difference1 reply 0 retweets 0 likes -
Replying to @dominictarr
@dominictarr in this case server dropped from 20k -> ~6-10k connections a second by obj streams rather than fns. Real bench
@ahdinosaur2 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts@ahdinosaur can you post this code?1 reply 0 retweets 0 likes -
Replying to @dominictarr
@dominictarr@ahdinosaur it's heaps rough and non-scientific https://github.com/yoshuawuyts/playground-http-bench … disabling the streaming logging bit ups perf by so much1 reply 0 retweets 0 likes
@dominictarr @ahdinosaur this bit particularly
https://github.com/yoshuawuyts/playground-http-bench/blob/master/full/app-main/index.js#L15-L17 … I'm slightly ashamed I didn't notice it sooner haha
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.