diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-08-08 12:14:50 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2024-08-09 15:20:58 +0200 |
| commit | af44af238befeed20cc2606ea2b440e16d341213 (patch) | |
| tree | cfcc77efd3dfe6da305a8588b0cea1ee0d4ae708 /include/ruby/ractor.h | |
| parent | f57167d3380b6351a915e3e4e0c04c799bd151bd (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/ractor.h')
0 files changed, 0 insertions, 0 deletions
