<p dir="ltr">I don't necessarily need to do what I am doing, it just works quite well ... up to a point. The alternative involves a lot of list processing. Clause head matching on the other hand is really fast. My challenge is to match a very large number of patterns and to do it very fast and with the lowest cost.<br>

</p>
<div class="gmail_quote">On Jan 23, 2014 9:04 PM, "Anthony Ramine" <<a href="mailto:n.oxyde@gmail.com">n.oxyde@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry I didn’t reply to all the first time, putting the list back in the loop.<br>
<br>
Probably this problem was never encountered before. Do you really need to do whatever you are doing like this?<br>
<br>
--<br>
Anthony Ramine<br>
<br>
Le 23 janv. 2014 à 16:29, Vance Shipley <<a href="mailto:vances@motivity.ca">vances@motivity.ca</a>> a écrit :<br>
<br>
> I'm well aware of the limits on the atom table, how to change it and that it's not garbage collected.<br>
><br>
> I'm not creating these atoms in my abstract forms. It appears to be core Erlang (cerl) which is creating atoms.<br>
> On Jan 23, 2014 8:50 PM, "Anthony Ramine" <<a href="mailto:n.oxyde@gmail.com">n.oxyde@gmail.com</a>> wrote:<br>
> Yes and no, the atom table being limited in size is by design (cf. EEP20).<br>
><br>
> What are you compiling, though, to reach such a limit? That sounds completely insane to me.<br>
><br>
> --<br>
> Anthony Ramine<br>
><br>
> Le 23 janv. 2014 à 15:54, Vance Shipley <<a href="mailto:vances@motivity.ca">vances@motivity.ca</a>> a écrit :<br>
><br>
> > I am finding that when I dynamically build a function with<br>
> > a very large number of clauses the emulator crashes while<br>
> > compilig (cmpile:forms/2) after hitting the atom table limit.<br>
> > Looking at a erl_crash_.dump I can see that it was filling up<br>
> > the atom table with 'corN' where N is an ever increasing number.<br>
> ><br>
> > Is this a design limitation?<br>
> ><br>
> > --<br>
> >       -Vance<br>
> > _______________________________________________<br>
> > erlang-questions mailing list<br>
> > <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> > <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
<br>
</blockquote></div>