aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process_dict.h
diff options
context:
space:
mode:
authorVictor Ren <[email protected]>2016-10-06 18:27:07 +0800
committerSverker Eriksson <[email protected]>2016-10-10 15:10:29 +0200
commitc5a826b3d3a80726473fd9c2a7bea58b4363a993 (patch)
tree8f291b7c726f6d3fdf6ca598bf8841fa37e56407 /erts/emulator/beam/erl_process_dict.h
parent88acd9cbdea2b342206b7a2e5ba8b904dbfd10a7 (diff)
downloadotp-c5a826b3d3a80726473fd9c2a7bea58b4363a993.tar.gz
otp-c5a826b3d3a80726473fd9c2a7bea58b4363a993.tar.bz2
otp-c5a826b3d3a80726473fd9c2a7bea58b4363a993.zip
Use atom value as hash value in process dictionary
In the origin implementation, the hash value of atom term is retrieved from the atom table. Reading the atom table is expensive since it is in memory and leads to more cache missing. The size of a process dictionary is usually small. The atom value (the index) is unique and can be hash value for it. Using the atom value directly should be more efficient.
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.h')
0 files changed, 0 insertions, 0 deletions