aboutsummaryrefslogtreecommitdiffstats
path: root/rubystub.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-05 04:48:19 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-05 04:48:19 +0000
commitf98b91376be816181ce6951128db22b08387878d (patch)
treea4e596d906225086566efe79e792a3f204a16b57 /rubystub.c
parent5ca154587b224b88f1c04de2a3158628b44c619d (diff)
downloadruby-f98b91376be816181ce6951128db22b08387878d.tar.gz
add rb_hash_new_with_size()
Sometimes, size of a hash can be calcluated a priori. By providing such info to the constructor we can avoid unnecessary internal re- allocations. This can boost for instance creation of hash literals. [Bug #13861] Signed-off-by: Urabe, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubystub.c')
0 files changed, 0 insertions, 0 deletions