Commit Graph

14 Commits (34946b72a5e5a3d3c5c31fef4b373dcbc7b3821f)

Author SHA1 Message Date
Junegunn Choi 2fe1e28220 Improvements in performance and memory usage
I profiled fzf and it turned out that it was spending significant amount
of time repeatedly converting character arrays into Unicode codepoints.
This commit greatly improves search performance after the initial scan
by memoizing the converted results.

This commit also addresses the problem of unbounded memory usage of fzf.
fzf is a short-lived process that usually processes small input, so it
was implemented to cache the intermediate results very aggressively with
no notion of cache expiration/eviction. I still think a proper
implementation of caching scheme is definitely an overkill. Instead this
commit introduces limits to the maximum size (or minimum selectivity) of
the intermediate results that can be cached.
10 years ago
Junegunn Choi 50292adacb Implement --toggle-sort option (#173) 10 years ago
Junegunn Choi b431e227da Code cleanup 10 years ago
Junegunn Choi d94dfe0876 Fix #151 - reduce initial memory footprint 10 years ago
Junegunn Choi c1aa5c5f33 Add --tac option and reverse display order of --no-sort
DISCLAIMER: This is a backward incompatible change
10 years ago
Junegunn Choi f5b034095a Fix race condition in asynchronous -1 and -0 10 years ago
Junegunn Choi e808151c28 Make --select-1 and --exit-0 asynchronous 10 years ago
Junegunn Choi d760b790b3 Fix typo in code 10 years ago
Junegunn Choi cd847affb7 Reorganize source code 10 years ago
Junegunn Choi 7a2bc2cada Lint 10 years ago
Junegunn Choi 9dbf6b02d2 Fix race conditions
- Wait for completions of goroutines when cancelling a search
- Remove shared access to rank field of Item
10 years ago
Junegunn Choi b7bb100810 Improve response time by only looking at top-N items 10 years ago
Junegunn Choi 40d0a6347c Fix scan limit for --select-1 and --exit-0 options 10 years ago
Junegunn Choi f3177305d5 Rewrite fzf in Go 10 years ago