Skip to content

Commit c8c2426

Browse files
committed
Perldelta for GH#23968: OOK buffer copy only when SvOK(sv)
1 parent 4342210 commit c8c2426

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pod/perldelta.pod

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,19 @@ well.
348348

349349
=item *
350350

351+
C<Perl_sv_backoff>, which undoes the OOK string offset mechanism now only
352+
moves the string buffer contents to the start of the buffer if `SvOK(sv)`
353+
is true. Historically, the buffer contents were always moved, but if the
354+
buffer contents are defunct and no longer required, doing that incurs an
355+
unnecessary cost proportional to the size of the shifted contents.
356+
357+
(The assumption in this change is that `SvOK(sv)` is a valid indicator of
358+
whether the string buffer contents are "live" or not.)
359+
360+
See GH#23967 for an example of where such a copy was noticeable.
361+
362+
=item *
363+
351364
XXX
352365

353366
=back

0 commit comments

Comments
 (0)