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:
parent
9cc2f47e31
commit
f25b3c005e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user