aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/global.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-05-19 13:10:04 +0200
committerHans Bolinder <[email protected]>2017-05-19 13:10:04 +0200
commit40a5c8b1dd9e751488c11f47f8c6fe68a4e55aa2 (patch)
tree6eb02074de98107c28ee43d46927eb7553ef25cb /lib/kernel/src/global.erl
parent8d05453123fdc45bbb6f77a20aaa270ae443014b (diff)
downloadotp-40a5c8b1dd9e751488c11f47f8c6fe68a4e55aa2.tar.gz
otp-40a5c8b1dd9e751488c11f47f8c6fe68a4e55aa2.tar.bz2
otp-40a5c8b1dd9e751488c11f47f8c6fe68a4e55aa2.zip
kernel: Create table 'global_names' with read_concurrency
Measurements showed contention on one of the ETS tables created by the 'global' module.
Diffstat (limited to 'lib/kernel/src/global.erl')
-rw-r--r--lib/kernel/src/global.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/global.erl b/lib/kernel/src/global.erl
index 3d6415036c..a9e92b28b8 100644
--- a/lib/kernel/src/global.erl
+++ b/lib/kernel/src/global.erl
@@ -447,7 +447,8 @@ info() ->
init([]) ->
process_flag(trap_exit, true),
_ = ets:new(global_locks, [set, named_table, protected]),
- _ = ets:new(global_names, [set, named_table, protected]),
+ _ = ets:new(global_names, [set, named_table, protected,
+ {read_concurrency, true}]),
_ = ets:new(global_names_ext, [set, named_table, protected]),
_ = ets:new(global_pid_names, [bag, named_table, protected]),