-
Notifications
You must be signed in to change notification settings - Fork 523
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
PERF: Avoid creating GDALEnv for affine transformations. #2754
Conversation
Initially, I thought the best solution was to override |
@groutr thanks for this 👍. Thoughts about creating a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @groutr 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @groutr !
I'm going to cherry pick this one for 1.3.6. |
* Delegate creation of GDALEnv to subclasses that actually require it. * Create GDALTransformerBase class. * Fix multiple inheritance issues.
TransformerBase creates a GDALEnv every time its context is entered. For affine transformations, this is a huge performance hit for nothing.
ref: #2753
Before PR:
After PR: