peco.peco/filter
Daisuke Maki 6ea14d47b9 fix: reuse match/dedup slices across regexp filter loop iterations
Move slice declarations outside loop and reset with [:0] each iteration.

| Metric     | Before  | After   | Delta  |
|------------|---------|---------|--------|
| allocs/op  | 2209    | 1813    | -396   |
| B/op       | 176836  | 147849  | -28987 |
| ns/op      | ~352k   | ~317k   | -10%   |
2026-02-21 22:28:36 +09:00
..
base.go change applyFn to interface 2026-02-20 14:05:22 +09:00
base_test.go Check for far wider range of things in lint 2026-02-18 07:49:40 +09:00
bench_test.go fix: reuse match/dedup slices across regexp filter loop iterations 2026-02-21 22:28:36 +09:00
external.go propagate out.Send error in external filter 2026-02-20 22:26:44 +09:00
external_test.go convert t.Errorf/t.Fatal to testify/require 2026-02-21 07:58:26 +09:00
filter.go run gofmt -w 2026-02-20 10:58:04 +09:00
filter_test.go appease linter 2026-02-21 22:18:04 +09:00
fuzzy.go fix: eliminate closure allocation in fuzzy filter 2026-02-21 22:25:06 +09:00
parallel_test.go Check for far wider range of things in lint 2026-02-18 07:49:40 +09:00
regexp.go fix: reuse match/dedup slices across regexp filter loop iterations 2026-02-21 22:28:36 +09:00
set.go Methodically add function comments 2026-02-20 10:55:49 +09:00