Skip to content

Use simplified regex for html placeholders #928

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

Merged
merged 3 commits into from
Mar 30, 2020
Merged

Use simplified regex for html placeholders #928

merged 3 commits into from
Mar 30, 2020

Conversation

raabrp
Copy link
Contributor

@raabrp raabrp commented Mar 28, 2020

util already provides the regex we need for all placeholders, and we're doing extra work parsing for the explicit union of all of them.
In documents with ~30000 placeholders, I get a ~5x speedup with this change.

`util` already provides the regex we need for all placeholders, and we're doing extra work parsing for the explicit union of all of them.
In documents with ~30000 placeholders, I get a ~5x speedup with this change.
@waylan
Copy link
Member

waylan commented Mar 28, 2020

Can you add a note to the release notes?

@waylan waylan added the work-in-progress A partial solution. More changes will be coming. label Mar 28, 2020
raabrp added 2 commits March 30, 2020 02:22
Added comment to release note
added </code> tag
@raabrp
Copy link
Contributor Author

raabrp commented Mar 30, 2020

Updated release notes for 3.2 under "bug fixes"

@waylan waylan added approved The pull request is ready to be merged. and removed work-in-progress A partial solution. More changes will be coming. labels Mar 30, 2020
@waylan waylan merged commit c5f1395 into Python-Markdown:master Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved The pull request is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants