Branch: refs/heads/smoke-me/khw-utf8_to_bytes
  Home:   https://github.com/Perl/perl5
  Commit: 5baae6fa8b767835de3ecea5fe558d4e5ab0d205
      
https://github.com/Perl/perl5/commit/5baae6fa8b767835de3ecea5fe558d4e5ab0d205
  Author: Karl Williamson <[email protected]>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M Porting/bench.pl

  Log Message:
  -----------
  XXX don't push, khw customization for bench.pl


  Commit: 118ce204c2cc20d86cddedad8070eab35cd4074c
      
https://github.com/Perl/perl5/commit/118ce204c2cc20d86cddedad8070eab35cd4074c
  Author: Karl Williamson <[email protected]>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M inline.h
    M utf8.c

  Log Message:
  -----------
  XXX Don't push; experimental utf8_to_bytes backout if wide char

This changes utf8_to_bytes() to do an per-word initial scan before starting
the conversion.  If it encounters a wide character that means it should
fail, it undoes what it's already done.

This is faster if the frequency of being called on input that can't be
downgraded is small.


Compare: https://github.com/Perl/perl5/compare/5baae6fa8b76%5E...118ce204c2cc

Reply via email to