Pattern matching vs. ETS lookups

Vlad Dumitrescu <>
Tue Feb 17 14:44:14 CET 2004


----- Original Message ----- 
From: "Tony Rogvall" <>
> 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.

()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