aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process_dict.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-12-08 18:45:32 +0100
committerSverker Eriksson <[email protected]>2015-12-09 20:18:17 +0100
commit343f461a2810ce3440b1d7c55cda996038071d87 (patch)
treefd762742b6995ce7eec50a2d9714a844533d3807 /erts/emulator/beam/erl_process_dict.h
parentc97f3332aeddf039ee2207196229b9ff07047c72 (diff)
downloadotp-343f461a2810ce3440b1d7c55cda996038071d87.tar.gz
otp-343f461a2810ce3440b1d7c55cda996038071d87.tar.bz2
otp-343f461a2810ce3440b1d7c55cda996038071d87.zip
erts: Optimize hashing in process dictionary
by limiting table sizes to powers of 2. This will change the default size from 10 to 8.
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.h')
-rw-r--r--erts/emulator/beam/erl_process_dict.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process_dict.h b/erts/emulator/beam/erl_process_dict.h
index 9aa21b7c38..ab50d45c63 100644
--- a/erts/emulator/beam/erl_process_dict.h
+++ b/erts/emulator/beam/erl_process_dict.h
@@ -31,6 +31,7 @@ typedef struct proc_dict {
Eterm data[1]; /* The beginning of an array of erlang terms */
} ProcDict;
+int erts_pd_set_initial_size(int size);
Uint erts_dicts_mem_size(struct process *p);
void erts_erase_dicts(struct process *p);
void erts_dictionary_dump(int to, void *to_arg, ProcDict *pd);