Skip to content

refactor: improve performance; Python 3.11 min#101

Merged
johnfraney merged 6 commits intomainfrom
more-performance-improvements
Dec 28, 2024
Merged

refactor: improve performance; Python 3.11 min#101
johnfraney merged 6 commits intomainfrom
more-performance-improvements

Conversation

@johnfraney
Copy link
Contributor

@johnfraney johnfraney commented Dec 20, 2024

Improves performance by making better use of concurrency for extracting data from Markdown files and processing images.

Also makes Python 3.11 the minimum required version to fix an issue with toml pickling in multiprocessing and changes the FRONTMATTER_NON_SCHEMA_VARIABLE_PREFIX default from ~ to _, which doesn't need to be quoted and matches PEP 8: https://peps.python.org/pep-0008/#descriptive-naming-styles

Improves performance by making better use of concurrency for extracting
data from Markdown files and processing images
@johnfraney johnfraney force-pushed the more-performance-improvements branch from ee8c9f7 to aa0cb33 Compare December 28, 2024 18:22
Updates the minimum Python version to 3.11 for its built-in tomllib and
removes the toml dependency.

toml wasn't pickling properly, causing issues with multiprocessing
Changes the non-schema front matter variable prefix from ~ to _ so they
don't have to be quoted. tomllib throws an error for an unquoted key
starting with "~"
Adds a note to the Markdown docs about non-schema front matter.

Also adds a link to the settings file in GitHub to show the default
values
@johnfraney johnfraney changed the title refactor: improve performance refactor: improve performance; Python 3.11 min Dec 28, 2024
@johnfraney johnfraney merged commit 697af6b into main Dec 28, 2024
4 checks passed
@johnfraney johnfraney deleted the more-performance-improvements branch December 28, 2024 19:15
@johnfraney johnfraney added this to the v0.14.0 milestone Dec 29, 2024
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