Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: b60f610b32347ca01c4a978e86fe143dd4e6c12d
      
https://github.com/Perl/perl5/commit/b60f610b32347ca01c4a978e86fe143dd4e6c12d
  Author: Karl Williamson <[email protected]>
  Date:   2025-09-05 (Fri, 05 Sep 2025)

  Changed paths:
    M inline.h
    M utf8.c

  Log Message:
  -----------
  Add ASSUMEs for UTF-8 byte lengths

The maximum number of bytes in a Perl extended UTF-8 character is 13 on
ASCII platforms; 14 on EBCDIC.  Yet the variable that returns that
number is a Size_t in the cases changed by this commit.  By adding these
ASSUMES to these functions, the compiler may be able to do some
optimizations.

I looked through the code base, and found no other instances where such
a small value could be stored in a fully wide variable.

With link time optimization, an ASSUME may be helpful even in non-inline
functions.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to