# 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