Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache the format of feeds #3126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jvoisin
Copy link
Collaborator

@jvoisin jvoisin commented Feb 4, 2025

Detecting the format of a feed accounts for up to 30% of the time spent in parser.ParseFeed. Cache the value once detected, as it'll never change.

image

This should close #2973

@jvoisin jvoisin marked this pull request as draft February 4, 2025 15:44
@jvoisin jvoisin marked this pull request as ready for review February 4, 2025 15:52
@jvoisin jvoisin force-pushed the cache_detection branch 2 times, most recently from a729e9a to 22466eb Compare February 9, 2025 16:50
@jvoisin jvoisin requested a review from fguillot February 9, 2025 16:51
@jvoisin jvoisin force-pushed the cache_detection branch 2 times, most recently from 4de54c3 to 1682327 Compare February 11, 2025 04:44
Detecting the format of a feed accounts for up to 30% of the time spent in
`parser.ParseFeed`. Cache the value once detected, as it'll never change.
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.

Don't detect the format of a known feed
1 participant