1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-08-16 16:20:38 +03:00

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.
This commit is contained in:
Maxime Coste 2024-03-11 20:52:56 +11:00
parent 9cc2f47e31
commit f25b3c005e

View File

@ -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)