summaryrefslogtreecommitdiff
path: root/src/merger.go
AgeCommit message (Collapse)Author
2025-10-09Introduce 'raw' modeJunegunn Choi
2025-07-06Fix selection lost on revision bumpJunegunn Choi
2024-06-04Add --tail=NUM to limit the number of items to keep in memoryJunegunn Choi
2023-05-27Fix bug where preview is not updated after reload when --disabled is setJunegunn Choi
Fix #3311
2023-04-22Fixed --track when used with --tacJunegunn Choi
Fix #3234
2023-04-01Add --track option to track the current selectionJunegunn Choi
Close #3186 Related #1890
2021-02-17Remove redundant assignment (#2356)odeson24
Co-authored-by: Ryan Ou <ryanou@aetherai.com>
2017-08-15Remove special nilItemJunegunn Choi
2017-07-18Consolidate Result and rank structsJunegunn Choi
By not storing item index twice, we can cut down the size of Result struct and now it makes more sense to store and pass Results by values. Benchmarks show no degradation of performance by additional pointer indirection for looking up index.
2017-07-16Remove pointer indirection by changing Chunk definitionJunegunn Choi
2016-08-20Remove Offset slice from Result structJunegunn Choi
2016-08-19Micro-optimizationsJunegunn Choi
- Make structs smaller - Introduce Result struct and use it to represent matched items instead of reusing Item struct for that purpose - Avoid unnecessary memory allocation - Avoid growing slice from the initial capacity - Code cleanup
2016-08-14LintJunegunn Choi
2016-01-13Accept comma-separated list of sort criteriaJunegunn Choi
2015-08-02LintJunegunn Choi
2015-04-17Improvements in performance and memory usageJunegunn Choi
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.
2015-03-22Code cleanupJunegunn Choi
2015-03-19Fix #151 - reduce initial memory footprintJunegunn Choi
2015-02-26Add --tac option and reverse display order of --no-sortJunegunn Choi
DISCLAIMER: This is a backward incompatible change
2015-02-18Fix race condition in asynchronous -1 and -0Junegunn Choi
2015-01-12LintJunegunn Choi
2015-01-11Fix race conditionsJunegunn Choi
- Wait for completions of goroutines when cancelling a search - Remove shared access to rank field of Item
2015-01-10Change Merger implementation on --no-sortJunegunn Choi
2015-01-10Improve response time by only looking at top-N itemsJunegunn Choi