<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>The process dictionary is the cheapest mutable structure in erlang. Have a try at it. </div><div><br></div><div>Maybe a NIF handling a fixed size mutable tuple will do too.. No idea!<br><br><br></div><div><br>On 21 Jul 2015, at 16:55, Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@gmail.com">jesper.louis.andersen@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 21, 2015 at 6:00 AM, Hugo Wang <span dir="ltr"><<a href="mailto:w@mitnk.com" target="_blank">w@mitnk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>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.</div><div></div></blockquote></div><br></div><div class="gmail_extra">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.<br></div><div class="gmail_extra"><br clear="all"><br>-- <br><div class="gmail_signature">J.</div>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>