mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
aa8b40dce6
This patch reduces the O(n) tab completion to something like O(log(n)). The cache is just a sorted vector of strings and we binary search it to get a string matching our input, and then check the surrounding strings to see if we need to remove any characters. Also we no longer stat each file every time. Also added an #include in BinarySearch since it was using size_t. Oops. If `export` is called, we recache. Need to implement the `hash` builtin for when an executable has been added to a directory in PATH. |
||
---|---|---|
.. | ||
GlobalState.h | ||
LineEditor.cpp | ||
LineEditor.h | ||
main.cpp | ||
Makefile | ||
Parser.cpp | ||
Parser.h |