Skip to content

Commit

Permalink
Speed up \ior_map_inline:Nn, etc.
Browse files Browse the repository at this point in the history
This makes a real difference to load time with Unicode
engines: they map over all of the Unicode data.
  • Loading branch information
josephwright committed Jan 11, 2019
1 parent cdf4248 commit 314ad44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions l3kernel/CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.

## [Unreleased]

### Changed

- Improved performance of `\ior_map_inline:Nn` and related functions

### Fixed

- Handling of accented characters under mixed case changing in 8-bit engines
Expand Down
13 changes: 8 additions & 5 deletions l3kernel/l3file.dtx
Expand Up @@ -1002,11 +1002,14 @@
\cs_new_protected:Npn \@@_map_inline_loop:NNN #1#2#3
{
#2 #3 \l_@@_internal_tl
\ior_if_eof:NF #3
{
\exp_args:No #1 \l_@@_internal_tl
\@@_map_inline_loop:NNN #1#2#3
}
\if_ior:w #3
\exp_after:wN \use_none:nn
\fi:
\use:n
{
\exp_args:No #1 \l_@@_internal_tl
\@@_map_inline_loop:NNN #1#2#3
}
}
% \end{macrocode}
% \end{macro}
Expand Down

0 comments on commit 314ad44

Please sign in to comment.