I understood tuples are only optimised for a handful of elements.
Re:Unpacking Elixir: Concurrency
by throwawaymaths on Friday August 25, 2023 @10:20PM
(#37269351)
This is correct. If you want a true array experience you have to use atomics or a nif.
With a big caveat that modifying tuples isn't great for performance unless the compiler or optimizer determine that mutating the tuple is acceptable rather than providing a mutated copy.