Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 0fa334ad069406cde41c1eef6ff9b1393bfc6180 https://github.com/Perl/perl5/commit/0fa334ad069406cde41c1eef6ff9b1393bfc6180 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024)
Changed paths: M perl.h Log Message: ----------- perl.h: Clarify comments, fix typo Use column headings Commit: 6b6e7ebddc5b626b819f9d45e1e5086d573526c0 https://github.com/Perl/perl5/commit/6b6e7ebddc5b626b819f9d45e1e5086d573526c0 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uv_msgs: Move code to earlier in function This enables simplifications in the next commits. Commit: 1910ef24f7144afc490fe8ea59d7e8a68ccd2b2d https://github.com/Perl/perl5/commit/1910ef24f7144afc490fe8ea59d7e8a68ccd2b2d Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- inline.h: White space only This changes the indent of some code that will make sense in a few commits. Commit: d4e276590cad697e8a374a34d8371921330ec60e https://github.com/Perl/perl5/commit/d4e276590cad697e8a374a34d8371921330ec60e Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Hoist conditional outside loop This slight refactoring speeds this important loop up a bit. Commit: 88c138765b9829e586cf20b9563fb0698e75f02e https://github.com/Perl/perl5/commit/88c138765b9829e586cf20b9563fb0698e75f02e Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Add branch prediction Most calls to this function will have it succeed Commit: 4921e06474769f4cdfab9a8bd06a54afb7215fcd https://github.com/Perl/perl5/commit/4921e06474769f4cdfab9a8bd06a54afb7215fcd Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Remove an #ifdef A previous commit removed this spot from having to deal with UTF-8 invariants that don't want to be translated to EBCDIC, leaving only cases that do, so we can move the code to deal with it to here, and remove the #ifdef. The macro call is a no-op on ASCII machines. Commit: c11db1049124709789043158a62664cadeca4160 https://github.com/Perl/perl5/commit/c11db1049124709789043158a62664cadeca4160 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: More shortcut of UTF-8 invariants This avoids the dfa table altogether by adding a test for UTF-8 invariants (ASCII-range characters), and not doing the table lookup at all for them. This removes the table lookup for these, and removes calculations in the return length value, and a potential jump. But the extra conditional is wasted for non-ASCII range. I consider this trade-off to be a wash, but it enables future simplifications Commit: 25b3bcb00f5e7c6ee856224201fcbe9f485ef2fe https://github.com/Perl/perl5/commit/25b3bcb00f5e7c6ee856224201fcbe9f485ef2fe Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Move code to only remaining branch Replace the goto by the code it jumped to, as there is no longer any other code that jumps to it. Commit: 7c1ecced478d17b08bbc0c80f25b8ae294bf729b https://github.com/Perl/perl5/commit/7c1ecced478d17b08bbc0c80f25b8ae294bf729b Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Change declaration type and move Move closer to its first use. This variable only needs to be 8 bits, but tell the compiler to prioritize speed over size. Commit: 2318eaa5d905313fd6c0278b5dea51ee65d7d6e0 https://github.com/Perl/perl5/commit/2318eaa5d905313fd6c0278b5dea51ee65d7d6e0 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Comment why variable not named 'class' Commit: 09c4dfa8d081810730342ef56c21defd1f69f1db https://github.com/Perl/perl5/commit/09c4dfa8d081810730342ef56c21defd1f69f1db Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Variable can be narrower It only needs 8 bits, but tell compiler to prioritize speed Commit: ef862b546d427c5878835d58d25a6a8ca663f757 https://github.com/Perl/perl5/commit/ef862b546d427c5878835d58d25a6a8ca663f757 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Move comments close to where they apply Commit: 3151c32d03cf714a89a22cc4c4edf4f07b8f5e89 https://github.com/Perl/perl5/commit/3151c32d03cf714a89a22cc4c4edf4f07b8f5e89 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Move declarations closer to use Commit: 3aedd04be46ffc675785db14b9f763eb3f3d7cbb https://github.com/Perl/perl5/commit/3aedd04be46ffc675785db14b9f763eb3f3d7cbb Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Add branch prediction Commit: 0a7924ea91d9c6fa3b83ab89e7d3220597d5d930 https://github.com/Perl/perl5/commit/0a7924ea91d9c6fa3b83ab89e7d3220597d5d930 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M embed.fnc M inline.h M proto.h Log Message: ----------- utf8n_to_uvchr_msgs: Change formal parameter This makes the beginning of the string to examine totally const, and then initializes the pointer to the position in the string being parsed to this constant s0. Making it totally const enforces that the function doesn't try to change it; and this makes the next commit trivial. Commit: c34707654a57d9a129974180d0fc0d602375de34 https://github.com/Perl/perl5/commit/c34707654a57d9a129974180d0fc0d602375de34 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8n_to_uvchr_msgs: Refactor to avoid extra call This makes a complicated function call appear in the source just once. Commit: b66abe3878e48c99de059364b052d96c7be8ee75 https://github.com/Perl/perl5/commit/b66abe3878e48c99de059364b052d96c7be8ee75 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-02 (Wed, 02 Oct 2024) Changed paths: M utf8.h Log Message: ----------- utf8.h: Include Perl extended UTF-8 in two #defines Perl extended UTF-8 is beyond any UTF-8 that was ever in any standard. Unicode UTF-8 stops at U+10FFFF, but earlier standards went up to 7FFF_FFFF. Perl allows any code point that fits in a 64-bit word. When one specifies to exclude anything above 10FFFF, one is automatically excluding Perl extended UTF-8. But it is more convenient for future commits to have it explicitly added to the definitions. Compare: https://github.com/Perl/perl5/compare/d29571779421...b66abe3878e4 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications