Skip to content

perf(finder): don't parse the candidate page two times#4060

Open
jvoisin wants to merge 1 commit intominiflux:mainfrom
jvoisin:finderskeeper2
Open

perf(finder): don't parse the candidate page two times#4060
jvoisin wants to merge 1 commit intominiflux:mainfrom
jvoisin:finderskeeper2

Conversation

@jvoisin
Copy link
Collaborator

@jvoisin jvoisin commented Feb 13, 2026

Instead of parsing the HTML once in findSubscriptionsFromWebPage and another time in findCanonicalURL, do it once in a parseHTMLDocument function. This was also the opportunity to restrict the link[rel='canonical' i query to head link[rel='canonical' i.

Instead of parsing the HTML once in findSubscriptionsFromWebPage and another
time in findCanonicalURL, do it once in a `parseHTMLDocument` function.
This was also the opportunity to restrict the `link[rel='canonical' i`
query to `head link[rel='canonical' i`.
@jvoisin jvoisin changed the title perf(finder): don't parse the candidate page two perf(finder): don't parse the candidate page two times Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant