GDALRasterBand::ComputeRasterMinMax(): add optimized implementation for Byte and UInt16 data types#5813
Merged
rouault merged 2 commits intoOSGeo:masterfrom Jun 1, 2022
Merged
Conversation
…or Byte and UInt16 data types re-use the optimizations of ComputeStatistics(), using SSE2 when available Before: ``` $ python perftests/computeminmax.py testByte(): 8.776 testUInt16(): 7.174 testInt16(): 8.210 testFloat32(): 7.846 testFloat64(): 9.407 ``` After: ``` $ python perftests/computeminmax.py testByte(): 0.316 testUInt16(): 0.779 testInt16(): 2.863 testFloat32(): 6.993 testFloat64(): 8.078 ``` To be compared with timings of ComputeStatistics(): ``` $ python ../perftests/computestatistics.py testByte(): 0.483 testUInt16(): 1.262 testInt16(): 28.417 testFloat32(): 29.075 testFloat64(): 30.382 ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
re-use the optimizations of ComputeStatistics(), using SSE2 when available
Before:
After:
To be compared with timings of ComputeStatistics():