diff options
author | John Högberg <[email protected]> | 2018-10-01 15:23:17 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-10-03 13:42:10 +0200 |
commit | 31a4c1d65c24d8240d5d46d8cffe81097ebb28bf (patch) | |
tree | 39f2593781ab8d9029fe161b0da6bdad5943bdbd /lib/compiler/src/beam_utils.erl | |
parent | 25d15bc981659947899499bbce6040868d73418f (diff) | |
download | otp-31a4c1d65c24d8240d5d46d8cffe81097ebb28bf.tar.gz otp-31a4c1d65c24d8240d5d46d8cffe81097ebb28bf.tar.bz2 otp-31a4c1d65c24d8240d5d46d8cffe81097ebb28bf.zip |
Optimize named funs and fun-wrapped macros
If a fun is defined locally and only used for calls, it can be replaced
with direct calls to the relevant function. This greatly speeds up "named
functions" (which rely on make_fun to recreate themselves) and macros that
wrap their body in a fun.
Diffstat (limited to 'lib/compiler/src/beam_utils.erl')
0 files changed, 0 insertions, 0 deletions