4 ms·
I think what he's trying to say is that silver bullets don't exist. Only pros and cons.
by mkhpalm 11y ago
I think what he's trying to say is that silver bullets don't exist. Only pros and cons.
- phamilton 11y agoI'm specifically asking about caching.
- wang_li 11y agoPresumably he's talking about processor caches. A shared nothing means that every time you "context" switch to another "process" you're going to have to reload all your cache lines in the L1 D-cache.
- phamilton 11y agoIn Erlang you have a "reduction count budget" of 2000 reductions. This is fairly low, less than 1ms of execution, but during that time you have exclusive use of a CPU. At the end of your budget, you might be preempted, or you might get another window. So you take a bit of a hit to cache, but it's not like you are infinitely context switching. In practice it works fairly well.