miniflux-v2/internal/reader/sanitizer
jvoisin f12d5131b0 Divide the sanitization time by 3
Instead of having to allocate a ~100 keys map containing possibly dynamic
values (at least to the go compiler), allocate it once in a global variable.
This significantly speeds things up, by reducing the garbage
collector/allocator involvements.

Local synthetic benchmarks have shown a improvements from 38% of wall time to only
12%.
2024-02-28 20:00:13 -08:00
..
sanitizer_test.go fix: tests for allow popups to escape sandbox 2023-12-10 16:59:58 -08:00
sanitizer.go Divide the sanitization time by 3 2024-02-28 20:00:13 -08:00
srcset_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
srcset.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
strip_tags_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
strip_tags.go Add a warning for StripTags 2024-02-27 20:41:47 -08:00
truncate_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
truncate.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00