[erlang-questions] How to Update List Elements A Lot

Pierre Fenoll pierrefenoll@REDACTED
Tue Jul 21 12:17:57 CEST 2015

The process dictionary is the cheapest mutable structure in erlang. Have a try at it. 

Maybe a NIF handling a fixed size mutable tuple will do too.. No idea!

> On 21 Jul 2015, at 16:55, Jesper Louis Andersen <jesper.louis.andersen@REDACTED> wrote:
>> On Tue, Jul 21, 2015 at 6:00 AM, Hugo Wang <w@REDACTED> wrote:
>> In other language, like C or Python, we can init an output list and then update its elements inline. In Erlang, what I currently do, would make a copy of the list every time when an element need to update. This looks not quite right.
> Do you have a small snippet of an inner loop somewhere? It may be easier to recommend an approach then. Do note that crypto-stuff in Erlang is perhaps not the best approach since the complexity of the VM makes it harder to account for side channels.
> -- 
> J.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150721/2016fabf/attachment.htm>

More information about the erlang-questions mailing list