Does anyone know the rough order of magnitude of boundary crossing between the main thread and workers in browsers?
-
-
Replying to @wycats
Are you talking about context switching or the cost of just sending the messages which is mainly about serialization?
1 reply 0 retweets 0 likes -
If it's the latter I can point you to some posts,
@nolanlawson did some investigating into that1 reply 0 retweets 0 likes -
Replying to @CWMma @NolanLawson
I'm willing to assume either zero-sized messages or transferrable messages, but any info would be great.
1 reply 0 retweets 0 likes -
Replying to @wycats @NolanLawson
https://nolanlawson.com/2016/02/29/high-performance-web-worker-messages/ … is a starting point
1 reply 0 retweets 0 likes -
Replying to @CWMma @NolanLawson
Some problems: - the post ignores Transfer but it may be possible to architect your code around them - browsers tend to get faster
1 reply 0 retweets 0 likes
What I mean by architecting around them is putting your content in an array buffer to begin with. Curious about raw overhead of existing buf
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.