Skip to content

fix: do not use excessive memory when rendering markdown#382

Merged
maartenbreddels merged 1 commit intomasterfrom
11-15-fix_do_not_use_excessive_memory_when_rendering_markdown
Nov 15, 2023
Merged

fix: do not use excessive memory when rendering markdown#382
maartenbreddels merged 1 commit intomasterfrom
11-15-fix_do_not_use_excessive_memory_when_rendering_markdown

Conversation

@maartenbreddels
Copy link
Copy Markdown
Contributor

Due to legacy reasons we enabled the emoji plugin from pymdown.
Every time the Markdown object gets created, it will load the
emoji extension and will deep copy the emoji database.
This is about 150kb of data:
len(str(pymdownx.emoji1_db.emoji))

This is not a lot, but it is unnecessary and can be avoided.

Due to legacy reasons we enabled the emoji plugin from pymdown.
Every time the Markdown object gets created, it will load the
emoji extension and will deep copy the emoji database.
This is about 150kb of data:
len(str(pymdownx.emoji1_db.emoji))

This is not a lot, but it is unnecessary and can be avoided.
Copy link
Copy Markdown
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

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