Pattern matching vs. ETS lookups

Matthias Lang matthias@REDACTED
Mon Feb 16 21:01:39 CET 2004

Serge Aleynikov writes:
 > Could anyone shed some light on which one of the two approaches is 
 > better (i.e. faster, more compact, more efficient) - function 
 > overloading & use of pattern matching or ets lookups?
 > The main question is if the number of functions is large (~ 65536), is 
 > it better to implement header/body parsing using hard-coded patterns:

This is so far outside most people's experience that "try and see" is
a reasonable way forward.


More information about the erlang-questions mailing list