[erlang-questions] How would you do 100 ifs?

Max Lapshin max.lapshin@REDACTED
Tue Nov 15 18:21:46 CET 2011


I can even advise to think about some binary packed structure, which
may be really faster than tree.

you can store sorted ranges of your ifs in one binary and make log2 access



More information about the erlang-questions mailing list