3 ms·
Tuples can be up to 16,777,215 elements, so quite substantial applications. https://www.erlang.org/doc/system/system_limits https://www.erlang.org/doc/system/s
by mikhailfranco 2y ago
Tuples can be up to 16,777,215 elements,
so quite substantial applications.
https://www.erlang.org/doc/system/system_limits https://www.erlang.org/doc/system/system_limits
There is also some hope that future versions
of the Erlang compiler will allow mutable O(1)
update of tuple elements through setelement
(code inside a process is - almost - guaranteed
not to have shared references).
Safe destructive update of tuples has been implemented
in the compiler and runtime system. This allows the VM to
update tuples in-place when it is safe to do so, thus
improving performance by doing less copying but also by
producing less garbage.
https://github.com/erlang/otp/releases?q=27&expanded=true https://github.com/erlang/otp/releases?q=27&expanded=true
It should be possible to add Elixir syntactic sugar to make this more concise and natural.