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

VRTComplexSource: perf improvement: add specialization when only NODATA for Byte/UInt16/Int16 data types #8562

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

rouault
Copy link
Member

@rouault rouault commented Oct 14, 2023

Add a specialization when a VRTComplexSource has only a value and no other processing (scaling, color table expansion, LUT), and that the source data type is Byte, UInt16, Int16

On a 3-band 20791x22938 Byte VRT, "gdal_translate in.vrt out.tif" goes from 9.8s to 4s

@rouault rouault added this to the 3.8.0 milestone Oct 14, 2023
@rouault rouault force-pushed the VRTComplexSource_byte_NODATA branch 9 times, most recently from b866eae to 4ca7c8e Compare October 14, 2023 18:00
…TA for Byte/UInt16/Int16 data types

Add a specialization when a VRTComplexSource has only a <NODATA> value
and no other processing (scaling, color table expansion, LUT), and that
the source data type is Byte, UInt16, Int16

On a 3-band 20791x22938 Byte VRT, "gdal_translate in.vrt out.tif" goes
from 9.8s to 4s
@rouault rouault force-pushed the VRTComplexSource_byte_NODATA branch from 4ca7c8e to cd67491 Compare October 14, 2023 18:08
@rouault rouault merged commit a04968c into OSGeo:master Oct 19, 2023
30 checks passed
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

Successfully merging this pull request may close these issues.

None yet

1 participant