summaryrefslogtreecommitdiffstats
path: root/src/core.go
AgeCommit message (Collapse)Author
2016-09-19Add --print0 option0.15.0Junegunn Choi
Related: #660
2016-09-18Revise ranking algorithmJunegunn Choi
2016-08-20No need to cache the result in filtering mode (--filter)Junegunn 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-17Setting GOMAXPROCS is no longer neededJunegunn Choi
https://golang.org/doc/go1.5
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-06-14Do not process ANSI codes in --preview output at onceJunegunn Choi
Close #598
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
2016-01-13Update license: 2016Junegunn Choi
2015-11-03Make --extended defaultJunegunn Choi
Close #400
2015-09-15Replace --header-file with --header (#346)Junegunn Choi
and allow using --header and --header-lines at the same time. Close #346.
2015-09-15Change exit status (0: OK, 1: No match, 2: Error/Interrupted)Junegunn Choi
A la grep. Close #345
2015-09-12Fix #344 - Backward scan when `--tiebreak=end`Junegunn Choi
2015-08-28Should not strip ANSI codes when --ansi is not setJunegunn Choi
2015-08-02Performance fix - unnecessary rune convertion on --ansiJunegunn Choi
> time cat /tmp/list | fzf-0.10.1-darwin_amd64 --ansi -fqwerty > /dev/null real 0m4.364s user 0m8.231s sys 0m0.820s > time cat /tmp/list | fzf --ansi -fqwerty > /dev/null real 0m4.624s user 0m5.755s sys 0m0.732s
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-08-02LintJunegunn Choi
2015-07-22Fix --header-lines unaffected by --with-nthJunegunn Choi
2015-07-22Fix ANSI processor to handle multi-line regionsJunegunn Choi
2015-07-22Add --header-lines optionJunegunn Choi
2015-06-08add support to nil-byte separated input strings, closes #121Giulio Iotti
2015-05-20Remove duplicate processing of command-line optionsJunegunn Choi
2015-04-18Add `--color=[dark|light|16|bw]` optionJunegunn Choi
- dark: the current default for 256-color terminal - light: color scheme for 256-color terminal with light background - 16: the default color scheme for 16-color terminal (`+2`) - bw: no colors (`+c`)
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-04-16Add visual indication of --toggle-sortJunegunn Choi
Close #194
2015-04-16Add --tiebreak option for customizing sort criteriaJunegunn Choi
Close #191
2015-03-31Implement --toggle-sort option (#173)Junegunn Choi
2015-03-31Fix #172 - Print empty line when fzf with expect finished by -1 or -0Junegunn Choi
2015-03-22Code cleanupJunegunn Choi
2015-03-19Add support for ANSI color codesJunegunn Choi
2015-03-01Make --filter non-blocking when --no-sort (#132)Junegunn Choi
When fzf works in filtering mode (--filter) and sorting is disabled (--no-sort), there's no need to block until input is complete. This commit makes fzf print the matches on-the-fly when the following condition is met: --filter FILTER --no-sort [--no-tac --no-sync] or simply: -f FILTER +s This removes unnecessary delay in use cases like the following: fzf -f xxx +s | head -5 However, in this case, fzf processes the input lines sequentially, so it cannot utilize multiple cores, which makes it slightly slower than the previous mode of execution where filtering is done in parallel after the entire input is loaded. If the user is concerned about the performance problem, one can add --sync option to re-enable buffering.
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-02-18Make --select-1 and --exit-0 asynchronousJunegunn Choi
2015-02-13Add `--sync` optionJunegunn Choi
2015-01-12Reorganize source codeJunegunn 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-11Update src/README.md and package commentJunegunn Choi
2015-01-10Improve response time by only looking at top-N itemsJunegunn Choi
2015-01-09Reduce memory footprintJunegunn Choi
2015-01-08Adjust initial coordinator delayJunegunn Choi
2015-01-04Remove race conditions when accessing the last chunkJunegunn Choi
2015-01-04Remove unnecessary delay on non/defered interactive modeJunegunn Choi
2015-01-04Fix exit conditions of --select-1 and --exit-0Junegunn Choi
2015-01-04Rewrite fzf in GoJunegunn Choi