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

DM-35008: Check whether the mask is present before asking for it #212

Merged
merged 1 commit into from Jun 1, 2022

Conversation

timj
Copy link
Member

@timj timj commented May 28, 2022

In some architectures the try/except catching a C++ exception
can be extremely slow and some code paths can call this
code many times in a loop. Replacing with the existence check
is significantly faster.

In some architectures the try/except catching a C++ exception
can be extremely slow and some code paths can call this
code many times in a loop. Replacing with the existence check
is significantly faster.
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think addMaskPlane does nothing but return the existing plane if the given one already exists, so even this check is unnecessary. But it's up to you whether to try that and endure another round of testing.

@timj timj merged commit 226e1bc into main Jun 1, 2022
@timj timj deleted the tickets/DM-35008 branch June 1, 2022 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants