mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
- Use string concatenation instead of `Sprintf`, as this is much faster, and the call to `Sprintf` is responsible for 30% of the CPU time of the function - Anchor the youtube regex, to allow it to bail early, as this also account for another 30% of the CPU time. It might be worth chaining calls to `TrimPrefix` and check if the string has been trimmed instead of using a regex, to speed things up even more, but this needs to be benchmarked properly. |
||
---|---|---|
.. | ||
testdata | ||
sanitizer.go | ||
sanitizer_test.go | ||
srcset.go | ||
srcset_test.go | ||
strip_tags.go | ||
strip_tags_test.go | ||
truncate.go | ||
truncate_test.go |