diff options
author | Hans Bolinder <[email protected]> | 2017-05-19 13:10:04 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-05-19 13:10:04 +0200 |
commit | 40a5c8b1dd9e751488c11f47f8c6fe68a4e55aa2 (patch) | |
tree | 6eb02074de98107c28ee43d46927eb7553ef25cb /lib/kernel | |
parent | 8d05453123fdc45bbb6f77a20aaa270ae443014b (diff) | |
download | otp-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')
-rw-r--r-- | lib/kernel/src/global.erl | 3 |
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]), |