4 ms·
performance has many dimensions. for example the cost/speed of spawning a process/thread and their intra process communication.
by dankai 2y ago
performance has many dimensions. for example the cost/speed of spawning a process/thread and their intra process communication.
- neonsunset 2y agoVery cheap in C# and Go. I assume Java has now closed the gap with its Green Threads implementation. (Spawning an asynchronously yielding C# task is ~100B of allocations depending on state machine box size, with very small overall overhead and threadpool handling millions of them, they are cheaper than Elixir tasks which make different tradeoffs (and are subject to BEAM limitations), you can try this out on your machine by running the examples from this thread: https://news.ycombinator.com/item?id=40435220 https://news.ycombinator.com/item?id=40435220)
- dankai 2y agothanks for sharing!