summaryrefslogtreecommitdiffstats
path: root/src/merger_test.go
AgeCommit message (Collapse)Author
2017-07-21Further reduce unnecessary rune array conversionJunegunn Choi
I was too quick to release 0.16.9, this commit makes --ansi processing even faster.
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.
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-14[perf] Avoid allocating rune array for ascii stringJunegunn Choi
In the best case (all ascii), this reduces the memory footprint by 60% and the response time by 15% to 20%. In the worst case (every line has non-ascii characters), 3 to 4% overhead is observed.
2016-01-14Simplify Item structureJunegunn Choi
This commit compensates for the performance overhead from the extended tiebreak option.
2016-01-13Accept comma-separated list of sort criteriaJunegunn Choi
2015-08-02Performance tuning - eager rune array conversionJunegunn Choi
> wc -l /tmp/list2 2594098 /tmp/list2 > time cat /tmp/list2 | fzf-0.10.1-darwin_amd64 -fqwerty > /dev/null real 0m5.418s user 0m10.990s sys 0m1.302s > time cat /tmp/list2 | fzf-head -fqwerty > /dev/null real 0m4.862s user 0m6.619s sys 0m0.982s
2015-02-26Add --tac option and reverse display order of --no-sortJunegunn Choi
DISCLAIMER: This is a backward incompatible change
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