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

What architectural patterns does Pillow use to make image operations fast and flexible? Have you found the need to do any significant refactorings of the original code to make it compatible with modern uses and execution environments? #2

Open
aclark4life opened this issue Apr 28, 2016 · 2 comments

Comments

@aclark4life
Copy link
Member

No description provided.

@wiredfool
Copy link
Member

Pillow's core is a C extension, using (for the most part) standard looping constructs to perform image operations at that level. There haven't been any major refactorings at that layer, though there have been some exploration of parallelisim using SMID and OpenMP, as well as some algorithmic changes to the blur and resampling code to improve performance by improving cache friendliness.

@wiredfool
Copy link
Member

Many of the bits in the C level are pluggable for the different image format types, either by macros or function pointers. This leads to small understandable chunks of code to handle the distinct cases. (for the most part, ymmv)

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

No branches or pull requests

2 participants