Hacker News new | ask | show | jobs
by dankai 733 days ago
performance has many dimensions. for example the cost/speed of spawning a process/thread and their intra process communication.
1 comments

Very 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)

thanks for sharing!