Comment

Comment by fzil

been reading / work with elixir and was interested in finding out the cause of high cpu usage.

TLDR: BEAM VM uses busy waiting under the hood to achieve fast response time when dealing with requests. you can disable it by setting a few options in the VM.

Edit: Interesting thing here is that there's no significant latency difference when toggling busy/wait, so not sure why that's the default.

parent fzil 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton