aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-04-14 09:07:40 +0200
committerBjörn Gustavsson <[email protected]>2019-04-15 10:34:17 +0200
commit6a9ed8508d4025c68b90aab44679551655967908 (patch)
tree98ef03c179e31f1f1538de7c665f98143c68295a /erts
parent06177ef50f41aa468c33a5270e89ca614e1a1b50 (diff)
downloadotp-6a9ed8508d4025c68b90aab44679551655967908.tar.gz
otp-6a9ed8508d4025c68b90aab44679551655967908.tar.bz2
otp-6a9ed8508d4025c68b90aab44679551655967908.zip
Optimize encoding of simple literals
`beam_asm` would encode `{literal,[]}`, `{literal,erlang}`, and `{literal,42}` in a less efficient way than the equivalent values `nil`, `{atom,erlang}`, and `{integer,42}`. That would increase the size of BEAM files and could increase the loaded code size. It would probably not harm performance, because `literal` was only used this way in code that generates `badmatch` and `case_clause` exceptions.
Diffstat (limited to 'erts')
0 files changed, 0 insertions, 0 deletions