Skip to content
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

add support for pickling DXF entities #1232

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

mbway
Copy link
Contributor

@mbway mbway commented Jan 22, 2025

fixes #1231

DXFNamespace has custom __getattr__ and __setattr__ so the default pickling mechanism doesn't work. Instead, custom state management is implemented for DXFNamespace. The unit test attempts to pickle and unpickle every example dxf. On my machine this takes ~3 seconds.

Pickling may be useful to cache parse results or to send dxf documents to subprocesses in a multiprocessed application.

@mozman mozman merged commit 53ef743 into mozman:master Jan 23, 2025
11 checks passed
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.

RecursionError when pickle dump/loading dxf file
2 participants