Skip to content

Reuse a couple hash maps across blocks - #951

Merged
Martin1887 merged 1 commit into
pulldown-cmark:masterfrom
notriddle:notriddle/hashmap
Sep 9, 2024
Merged

Martin1887 merged 1 commit into
pulldown-cmark:masterfrom
notriddle:notriddle/hashmap

Conversation

@notriddle

@notriddle notriddle commented Sep 7, 2024 •

Copy link
Copy Markdown
Collaborator

I implemented this change after seeing the RandomState in a flame graph. According to criterion, this seems to have a negligible effect on most test cases, but makes lorem1.md 50-80% better.

I implemented this change after seeing the RandomState in a
flame graph. According to criterion, this seems to make tiny
test cases about 2% worse, but makes `lorem1.md` 85% better.
@Martin1887
Martin1887 merged commit 933f907 into pulldown-cmark:master Sep 9, 2024
@notriddle
notriddle deleted the notriddle/hashmap branch September 9, 2024 15:13
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.

2 participants