diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-08-31 13:14:46 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-08-31 13:14:46 +1000 |
| commit | b24be99fa3e684201faed534c5988940d561df35 (patch) | |
| tree | 17d9be39adc14f67f1a2942c67ca3f6e99df137b /src/word_db.hh | |
| parent | 95a8d21d721d4a00bb4ec8ea3da0eed300d0c738 (diff) | |
Limit the amounts of calls to get_extra_word_chars
This is a relatively expensive function as it needs to resolve
an option, which uses dynamic_cast.
Diffstat (limited to 'src/word_db.hh')
| -rw-r--r-- | src/word_db.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/word_db.hh b/src/word_db.hh index aef047d0..dab65d4c 100644 --- a/src/word_db.hh +++ b/src/word_db.hh @@ -28,8 +28,8 @@ public: int get_word_occurences(StringView word) const; private: void update_db(); - void add_words(StringView line); - void remove_words(StringView line); + void add_words(StringView line, ConstArrayView<Codepoint> extra_word_chars); + void remove_words(StringView line, ConstArrayView<Codepoint> extra_word_chars); void rebuild_db(); |
