1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-10-15 19:42:07 +00:00
miniflux-v2/internal/reader/sanitizer
Julien Voisin 331c831c23
refactor(sanitizer): simplify hasRequiredAttributes
This function takes around 1.5% of the total CPU time on my instance, and most
of it is spent in `mapassign_faststr` to initialize the `map`. This is replaced
with a switch-case construct, that should be both significantly faster as well
as pretty dull in term of memory consumption.
2024-12-07 16:30:15 -08:00
..
testdata Speed the sanitizer up a bit, again 2024-03-05 19:31:50 -08:00
sanitizer.go refactor(sanitizer): simplify hasRequiredAttributes 2024-12-07 16:30:15 -08:00
sanitizer_test.go feat: remove well-known URL parameter trackers 2024-07-19 21:35:47 -07:00
srcset.go refactor(sanitizer): micro-optimizations of internal/reader/sanitizer/srcset.go 2024-12-07 16:27:56 -08:00
srcset_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
strip_tags.go Enable go-critic linter and fix various issues detected 2024-03-17 13:52:34 -07:00
strip_tags_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
truncate_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00