Pattern matching vs. ETS lookups

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Tue Feb 17 14:44:14 CET 2004


----- Original Message ----- 
From: "Tony Rogvall" <tony@REDACTED>
> I am also trying that, but like you said, it is STILL compiling?????
> What on earth is going on in the compiler???

I tried it too, and it took almost 15 minutes.

(emacs@REDACTED)3> timer:tc(compile, file, ["a"]).
{852392990,{ok,a}}

Now, it might be interesting to notice that if all branches return the same
term, then the compiling time becomes significantly shorter.

/Vlad






More information about the erlang-questions mailing list