[erlang-questions] How to Update List Elements A Lot
Tue Jul 21 14:49:57 CEST 2015
The process dictionary sounds a good option. I will try it. Thanks for the
On Tue, Jul 21, 2015 at 6:17 PM, Pierre Fenoll <pierrefenoll@REDACTED>
> 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.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions