diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-03-11 20:52:56 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-03-11 20:52:56 +1100 |
| commit | f25b3c005e3ba1153f319a07effbec232e8c9eed (patch) | |
| tree | fc76763efc07732ab0231569ac2aa8e898ccdd6b /src | |
| parent | 9cc2f47e31e2f0211573b079fe1a5b5a253bada2 (diff) | |
flatten ThreadedRegexVM::codepoint
Profiling shows that this does not always get the utf8::read_codepoint
call inlined and that almost doubles the time spent in the function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex_impl.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 1e8296b5..43db9a02 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -618,6 +618,7 @@ private: is_word(utf8::codepoint(pos, config.subject_end)); } + [[gnu::flatten]] static Codepoint codepoint(Iterator& it, const ExecConfig& config) { if constexpr (forward) |
