miniflux/internal/reader
jvoisin ab85d4d678 Improve EstimateReadingTime's speed by a factor 7
- Refactorise the tests and add some
- Use 250 signs instead of the whole text
- Only check for Korean, Chinese and Japanese script
- Add a benchmark
- Use a more idiomatic control flow

```console
$ # main branch
$ go test -bench=.
goos: linux
goarch: amd64
pkg: miniflux.app/v2/internal/reader/readingtime
BenchmarkEstimateReadingTime-12              267           4821268 ns/op
PASS
ok      miniflux.app/v2/internal/reader/readingtime     1.754s
$ # speed_up_reading_time branch
$ go test -bench=.
goos: linux
goarch: amd64
pkg: miniflux.app/v2/internal/reader/readingtime
cpu: 12th Gen Intel(R) Core(TM) i7-1265U
BenchmarkEstimateReadingTime-12             1941            653312 ns/op
PASS
ok      miniflux.app/v2/internal/reader/readingtime     1.342s
$
```
2024-02-29 19:24:15 -08:00
..
atom Use modern for loops 2024-02-28 19:55:28 -08:00
date Small refactoring of internal/reader/date/parser.go 2024-02-26 18:08:04 -08:00
dublincore Handle RDF feeds with duplicated <title> elements 2024-02-23 17:40:58 -08:00
encoding Regression: ensure all HTML documents are encoded in UTF-8 2023-12-01 16:52:03 -08:00
fetcher Add feed option to disable HTTP/2 to avoid fingerprinting 2024-02-24 22:30:26 -08:00
handler Add feed option to disable HTTP/2 to avoid fingerprinting 2024-02-24 22:30:26 -08:00
icon Simplify internal/reader/icon/finder.go 2024-02-26 18:18:04 -08:00
json Update date parser to parse more invalid date formats 2023-11-01 20:55:35 +01:00
media Use strings.ReplaceAll instead of strings.Replace(…, -1) 2024-02-28 19:47:30 -08:00
opml Use modern for loops 2024-02-28 19:55:28 -08:00
parser Add a couple of fuzzers 2024-02-26 17:23:49 -08:00
processor Don't compute reading-time when unused 2024-02-29 19:14:17 -08:00
rdf Handle RDF feeds with duplicated <title> elements 2024-02-23 17:40:58 -08:00
readability Revert "Minor internal/reader/readability/readability.go speedup" 2024-02-29 19:06:03 -08:00
readingtime Improve EstimateReadingTime's speed by a factor 7 2024-02-29 19:24:15 -08:00
rewrite Add missing regex anchor detected by CodeQL 2024-02-28 20:50:17 -08:00
rss Regression: ensure all HTML documents are encoded in UTF-8 2023-12-01 16:52:03 -08:00
sanitizer Add missing regex anchor detected by CodeQL 2024-02-28 20:50:17 -08:00
scraper Improve a bit internal/reader/scraper/scraper.go 2024-02-26 18:00:23 -08:00
subscription Add missing regex anchor detected by CodeQL 2024-02-28 20:50:17 -08:00
xml Regression: ensure all HTML documents are encoded in UTF-8 2023-12-01 16:52:03 -08:00