[erlang-questions] flash clauses vs nested clauses

Jachym Holecek <>
Fri Apr 6 00:29:05 CEST 2012


# Pablo Platt 2012-04-05:
> Is there a difference in performance between using nested clauses and flat clauses
> or is the compiler smart enough to produce the same optimizations?

Check out the 'foo.S' resulting from 'erlc +to_asm foo.erl'. BEAM instructions
aren't documented anywhere (correct me if I'm wrong), but the output tends to
be easy to follow; at least at the higher level of "what happened to my pattern
matching?".

HTH,
	-- Jachym



More information about the erlang-questions mailing list