Optimize wxImage::Scale() by pre-calculating the values used.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Jul 2013 14:48:24 +0000 (14:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Jul 2013 14:48:24 +0000 (14:48 +0000)
commit1b7f2c727d0826638e70f2c532ee2e5b3a283d87
tree65dbe1216f567f3b2285e4fc6d2d85d7a36eb5d4
parent544ab85e05ac2eb8bfa507bb8f81b87a69b2000c
Optimize wxImage::Scale() by pre-calculating the values used.

Precompute the values used by various resampling algorithms once instead of
doing it for each pixel. This dramatically speeds them up: more than 3 times
faster in wxImage benchmark with the small images and up to 5 times faster
with larger images.

Closes #15281.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
src/common/image.cpp