What's Changed
Security fixes:
Update golang.org/x/net
to latest. Fixes: CVE-2023-45288
Performance improvements:
- Change tar detection to use checksum instead of legal ranges of values in #466
- ftyp: exit asap to prevent mem allocs in #517
- Improve x-subrip detection performance in #524
- improve performance for text detection in #532
- Using io.ReadAll instead of ioutil.ReadAll by @phihungtf in #525
Benchmarks:
before:
BenchmarkText/application/x-ndjson-8 663314 2027 ns/op 4306 B/op 6 allocs/op
BenchmarkSliceRand-8 688160 1690 ns/op 728 B/op 75 allocs/op
BenchmarkSrt-8 946042 1089 ns/op 4240 B/op 5 allocs/op
after:
BenchmarkText/application/x-ndjson-8 1930292 678.6 ns/op 160 B/op 4 allocs/op
BenchmarkSliceRand-8 1232066 1173 ns/op 160 B/op 4 allocs/op
BenchmarkSrt-8 3235448 368.8 ns/op 64 B/op 2 allocs/op
New Contributors
- @phihungtf made their first contribution in #525
Full Changelog: v1.4.3...v1.4.4