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

Eliminate redundant processing of tags during start and end events #10

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

max-heller
Copy link
Owner

pulldown-cmark emits paired start and end events for each tag. Previously, we would process each tag twice--once for each event. Now, we stash a copy of the processed tag in a stack and use the last tag in the stack as the tag for each end event.

@max-heller max-heller changed the title Cache and reuse start tags instead of reprocessing end tag Eliminate redundant processing of tags during start and end events Nov 28, 2023
@max-heller max-heller merged commit f935e1a into main Nov 28, 2023
15 checks passed
@max-heller max-heller deleted the cache-tags branch November 28, 2023 00:59
@max-heller max-heller mentioned this pull request Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant