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

Simplify hasRequiredAttributes #2980

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

jvoisin
Copy link
Collaborator

@jvoisin jvoisin commented Dec 7, 2024

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.

image

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.
@jvoisin jvoisin force-pushed the simplify_hasRequiredAttributes branch from 99b4f0c to 0cce604 Compare December 7, 2024 22:56
@fguillot fguillot merged commit 331c831 into miniflux:main Dec 8, 2024
16 checks passed
@jvoisin jvoisin deleted the simplify_hasRequiredAttributes branch December 26, 2024 23:00
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.

2 participants