fzf/src
Charlie Vieth 5a874ae241
Speed up ANSI code processing (#2368)
This commit speeds up the parsing/processing of ANSI escape codes by
roughly 7.5x. The speedup is mostly accomplished by replacing the regex
with dedicated parsing logic (nextAnsiEscapeSequence()) and reducing the
number of allocations in extractColor().

#### Benchmarks
```
name             old time/op    new time/op     delta
ExtractColor-16    4.89µs ± 5%     0.64µs ± 2%   -86.87%  (p=0.000 n=9+9)

name             old speed      new speed       delta
ExtractColor-16  25.6MB/s ± 5%  194.6MB/s ± 2%  +661.43%  (p=0.000 n=9+9)

name             old alloc/op   new alloc/op    delta
ExtractColor-16    1.37kB ± 0%     0.31kB ± 0%   -77.31%  (p=0.000 n=10+10)

name             old allocs/op  new allocs/op   delta
ExtractColor-16      48.0 ± 0%        4.0 ± 0%   -91.67%  (p=0.000 n=10+10)
```
2021-03-11 19:34:50 +09:00
..
algo Accented character normalization for Vietnamese characters (#2090) 2020-06-21 17:19:38 +09:00
protector Add pledge(2) support (OpenBSD only) via a 'protector' package. (#1297) 2020-01-19 14:13:32 +09:00
tui Make search toggleable 2021-01-03 00:15:00 +09:00
util Update AtomicBool to use atomic memory operation (#1939) 2020-03-30 01:42:58 +09:00
ansi_test.go Speed up ANSI code processing (#2368) 2021-03-11 19:34:50 +09:00
ansi.go Speed up ANSI code processing (#2368) 2021-03-11 19:34:50 +09:00
cache_test.go Check gofmt in make test 2021-02-28 18:28:21 +09:00
cache.go Consolidate Result and rank structs 2017-07-18 03:14:33 +09:00
chunklist_test.go Remove count field from ChunkList 2017-08-16 12:26:06 +09:00
chunklist.go Experimental implementation of "reload" action 2019-11-10 11:43:37 +09:00
constants.go Kill input command on terminate 2021-03-07 11:30:26 +09:00
core.go Kill input command on terminate 2021-03-07 11:30:26 +09:00
history_test.go Migrate to GitHub Actions 2021-01-13 19:10:24 +09:00
history.go Code cleanup (#1640) 2019-07-19 13:22:35 +09:00
item_test.go Micro-optimizations 2016-08-19 02:39:32 +09:00
item.go Remove special nilItem 2017-08-15 01:10:41 +09:00
LICENSE 0.25.0 2021-01-03 00:56:11 +09:00
matcher.go Experimental implementation of "reload" action 2019-11-10 11:43:37 +09:00
merger_test.go Further reduce unnecessary rune array conversion 2017-07-21 17:31:11 +09:00
merger.go Remove redundant assignment (#2356) 2021-02-17 10:28:43 +09:00
options_test.go Check gofmt in make test 2021-02-28 18:28:21 +09:00
options.go Add select and deselect actions 2021-02-25 21:23:05 +09:00
pattern_test.go Check gofmt in make test 2021-02-28 18:28:21 +09:00
pattern.go Check gofmt in make test 2021-02-28 18:28:21 +09:00
reader_test.go Remove unnecessary reader barrier on --filter mode 2019-11-11 12:53:03 +09:00
reader.go [windows] Do not include directories in the list 2020-03-14 21:43:35 +09:00
result_others.go Optimize rank comparison on x86 (little-endian) 2017-08-27 01:46:11 +09:00
result_test.go Check gofmt in make test 2021-02-28 18:28:21 +09:00
result_x86.go Optimize rank comparison on x86 (little-endian) 2017-08-27 01:46:11 +09:00
result.go Fix typos in source code (#2322) 2021-01-15 10:10:09 +09:00
terminal_test.go Improvements to code quality and readability (#1737) 2019-11-05 09:46:51 +09:00
terminal_unix.go Support CTRL-Z (SIGSTOP) 2017-04-28 22:58:08 +09:00
terminal_windows.go Support CTRL-Z (SIGSTOP) 2017-04-28 22:58:08 +09:00
terminal.go Fix deadlocks 2021-03-08 00:08:10 +09:00
tokenizer_test.go Code cleanup: remove unnecessary string conversions (#1642) 2019-07-19 13:23:18 +09:00
tokenizer.go Fix typos in source code (#2322) 2021-01-15 10:10:09 +09:00