diff options
author | Lukas Larsson <[email protected]> | 2015-12-08 17:41:12 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-03-29 10:56:21 +0200 |
commit | da9b3a0825a3243aecfd849e11d1e37e5ccc96af (patch) | |
tree | 52c2bf0be7181b1a084e948d2dc5b1c2715f5587 /erts/emulator/beam/erl_bif_re.c | |
parent | cee5b753e8dbd294b2677f684c404d16dcfcd643 (diff) | |
download | otp-da9b3a0825a3243aecfd849e11d1e37e5ccc96af.tar.gz otp-da9b3a0825a3243aecfd849e11d1e37e5ccc96af.tar.bz2 otp-da9b3a0825a3243aecfd849e11d1e37e5ccc96af.zip |
erts: inline tag_val_def
The tag_val_def function was called and multiple switch statements
had to be traversed in term.c, and then a big switch in the calling
code to branch on the term types. By inlining the switches are
merged by the compiler and a lot fewer branches have to be taken.
Benchmarks show that this increases performance of enc_term by as
much as 10%.
Diffstat (limited to 'erts/emulator/beam/erl_bif_re.c')
0 files changed, 0 insertions, 0 deletions