1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00
miniflux-v2/internal/reader
jvoisin 2f7b2e7375 perf(readability): improve getLinkDensity
- There is no need to materialize all the content of a given Node when we can
  simply compute its length directly, saving a lot of memory, on the order of
  several megabytes on my instance, with peaks at a couple of dozen.
- One might object to the usage of a recursive construct, but this is a direct
  port of goquery's Text method, so this change doesn't make anything worse.
- The computation of linkLength can be similarly computed, but this can go in
  another commit, as it's a bit trickier, since we need to get the length of
  every Node that has a `a` Node as parent, without iterating on the whole
  parent chain every time.
2025-07-01 19:40:47 -07:00
..
atom perf(reader): use a non-cryptographic hash when possible 2025-06-18 20:28:23 -07:00
date refactor(date): use an else-if instead of two if statements 2025-02-06 19:44:12 -08:00
dublincore Refactor RDF parser to use an adapter 2024-03-12 20:54:05 -07:00
encoding fix(scraper): avoid encoding issue if charset meta tag is after 1024 bytes 2025-02-15 17:05:14 -08:00
fetcher perf(fetcher): save 8 bytes in the RequestBuilder struct 2025-06-29 16:10:35 -07:00
filter refactor(misc): Use proper slog.XXX instead of slog.Any 2025-06-29 12:30:17 -07:00
googleplay Refactor RSS Parser to use an adapter 2024-03-13 21:25:09 -07:00
handler feat: add entry filters at the feed level 2025-06-19 15:15:16 -07:00
icon feat: implement proxy URL per feed 2025-04-06 21:05:19 -07:00
itunes Refactor RSS Parser to use an adapter 2024-03-13 21:25:09 -07:00
json perf(reader): use a non-cryptographic hash when possible 2025-06-18 20:28:23 -07:00
media perf(media): minor regex simplification 2025-06-17 16:49:07 -07:00
opml fix(api): hide_globally categories field should be a boolean 2025-04-21 19:43:25 -07:00
parser refactor(tests): use b.Loop() instead of for range b.N 2025-06-18 20:12:55 -07:00
processor perf(processor): minify content even further 2025-06-29 12:55:34 -07:00
rdf perf(reader): use a non-cryptographic hash when possible 2025-06-18 20:28:23 -07:00
readability perf(readability): improve getLinkDensity 2025-07-01 19:40:47 -07:00
readingtime refactor(tests): use b.Loop() instead of for range b.N 2025-06-18 20:12:55 -07:00
rewrite refactor(processor): move RewriteEntryURL function to rewrite package 2025-06-19 13:22:29 -07:00
rss perf(reader): use a non-cryptographic hash when possible 2025-06-18 20:28:23 -07:00
sanitizer refactor(tests): use b.Loop() instead of for range b.N 2025-06-18 20:12:55 -07:00
scraper refactor(internal): add an urllib.DomainWithoutWWW function 2025-06-17 17:27:36 -07:00
subscription feat(rssbridge): support auth token for RSS-Bridge 2025-05-19 20:47:12 -07:00
urlcleaner perf(reader): optimize RemoveTrackingParameters 2025-06-10 19:29:25 -07:00
xml fix(reader): fix a crash introduced by d59990f1 2025-06-11 19:04:46 -07:00