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

(trivial) Avoid repeated calls to std::min() or std::max() #1253

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Oct 1, 2022

These functions have overloads accepting std::initializer_list argument which does not introduce performance overheads.

These functions have overloads accepting std::initializer_list argument
which does not introduce performance overheads.
@p12tic p12tic changed the title [trivial] Avoid repeated calls to std::min() or std::max() (trivial) Avoid repeated calls to std::min() or std::max() Oct 1, 2022
Copy link
Member

@simogasp simogasp left a comment

Choose a reason for hiding this comment

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

LGTM
It's always nice to learn new useful things! I didn't know about the overload version with the initializer.

@simogasp simogasp added this to the 2.5.0 milestone Oct 2, 2022
@fabiencastan fabiencastan merged commit 8fd9318 into alicevision:develop Oct 6, 2022
@p12tic p12tic deleted the avoid-repeated-minmax branch October 6, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants