1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Let execution context local storage be an ID table

This commit is contained in:
Lourens Naudé 2020-01-04 00:45:58 +00:00 committed by Samuel Williams
parent b53d8230f1
commit 40c57ad4a1
Notes: git 2020-01-11 10:41:09 +09:00
6 changed files with 42 additions and 22 deletions

View file

@ -0,0 +1,8 @@
prelude: |
th = Thread.current
th[:key] = :val
benchmark:
key?: th.key?(:key)
[]: th[:key]
keys: th.keys
loop_count: 1_000_000