Abbreviation matching: performance optimizations to prevent the worst case
author Sven Brauch
()
committer Sven Brauch
()
commit a8907d690d77a44b26701bf5716499f6db1c57cf
tree 4e8050ee298be7168a6ce4f3d0fa1a3a61e084d5
parent 7ec700fe2e545e9c587a30663fea1eca38e1e260
Abbreviation matching: performance optimizations to prevent the worst case

This puts two checks in place; one which avoids the worst case from
occuring in certain situations, and one which limits the time the function
may run in the worst case to something small (<1ms), after that it will
just claim there's a mismatch and abort.
part/completion/katecompletionmodel.cpp
tests/completion_test.cpp