summaryrefslogtreecommitdiff
path: root/include/ruby/internal/xmalloc.h
diff options
context:
space:
mode:
authorJosh Nichols <josh.nichols@gusto.com>2023-08-16 14:57:48 -0400
committergit <svn-admin@ruby-lang.org>2023-08-20 09:05:56 +0000
commit921c2bba4e4f0bb89d9ff354c05a176174586064 (patch)
tree74035b90e909be29decc82420c28ba4ddbe6b849 /include/ruby/internal/xmalloc.h
parent7e5c3ec5b1fc0afae215ca00d7a1dd5d8f3799c0 (diff)
[rubygems/rubygems] ENV.to_h returns a new hash, so we can `select!` it to avoid allocating another hash.
`String#start_with?` is faster than regex that is bound to the start of a string. https://github.com/rubygems/rubygems/commit/9b2006ef09
Diffstat (limited to 'include/ruby/internal/xmalloc.h')
0 files changed, 0 insertions, 0 deletions