kostya / benchmarks

Some benchmarks of different languages
MIT License
2.8k stars 253 forks source link

Elixir: use atomics in case when you need mutable array of integers #460

Closed romul closed 1 year ago

romul commented 1 year ago

:array module provides immutable arrays, so they are slow when you do a lot of in-place updates

We can use :atomics module to improve performance in 4 times and reduce memory usage as well.