Skip to content

Use simplified regex for html placeholders#928

Merged
waylan merged 3 commits into
Python-Markdown:masterfrom
raabrp:master
Mar 30, 2020
Merged

Use simplified regex for html placeholders#928
waylan merged 3 commits into
Python-Markdown:masterfrom
raabrp:master

Conversation

@raabrp

@raabrp raabrp commented Mar 28, 2020

Copy link
Copy Markdown
Contributor

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

waylan commented Mar 28, 2020

Copy link
Copy Markdown
Member

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

raabrp commented Mar 30, 2020

Copy link
Copy Markdown
Contributor Author

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