summaryrefslogtreecommitdiffstats
path: root/src/item_test.go
AgeCommit message (Collapse)Author
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-11-10Fix compatibility issues with OR operator and inverse termsJunegunn 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-04-16Add --tiebreak option for customizing sort criteriaJunegunn Choi
Close #191
2015-03-22Code cleanupJunegunn Choi
2015-03-19Add support for ANSI color codesJunegunn Choi
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-10Improve response time by only looking at top-N itemsJunegunn Choi
2015-01-09Reduce memory footprintJunegunn Choi
2015-01-04Rewrite fzf in GoJunegunn Choi