summaryrefslogtreecommitdiff
path: root/include/ruby/internal/eval.h
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2024-08-08 12:14:50 +0200
committerJean Boussier <jean.boussier@gmail.com>2024-08-09 15:20:58 +0200
commitaf44af238befeed20cc2606ea2b440e16d341213 (patch)
treecfcc77efd3dfe6da305a8588b0cea1ee0d4ae708 /include/ruby/internal/eval.h
parentf57167d3380b6351a915e3e4e0c04c799bd151bd (diff)
str_independent: add a fastpath with a single flag check
If we assume that most strings we modify are not frozen and are independent, then we can optimize this case by replacing multiple flag checks by a single mask check.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11350
Diffstat (limited to 'include/ruby/internal/eval.h')
0 files changed, 0 insertions, 0 deletions