diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-10-25 12:52:14 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-10-25 12:52:14 +1100 |
| commit | be33dee211f08570072ae4ef5cea951aa4aa44ef (patch) | |
| tree | 14a87d499e2bfcf2e2cb12ab04f64b5169dff899 /src/word_db.hh | |
| parent | b33b673f106ca938681356dca159634eec01d570 (diff) | |
Speed up WordSplitter
Only do utf8 decoding once per codepoint instead of twice, limit
the byte length instead of the codepoint length.
Diffstat (limited to 'src/word_db.hh')
| -rw-r--r-- | src/word_db.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/word_db.hh b/src/word_db.hh index ac7b8c01..dcb46653 100644 --- a/src/word_db.hh +++ b/src/word_db.hh @@ -18,7 +18,7 @@ class Buffer; class WordDB : public OptionManagerWatcher { public: - static constexpr CharCount max_word_len = 50; + static constexpr ByteCount max_word_len = 50; WordDB(const Buffer& buffer); ~WordDB(); |
