commit | e8a9c99854c4618557475729c798840e70cf1157 | [log] [tgz] |
---|---|---|
author | Damjan Jovanovic <damjan@apache.org> | Sun Feb 26 05:43:00 2012 +0000 |
committer | Damjan Jovanovic <damjan@apache.org> | Sun Feb 26 05:43:00 2012 +0000 |
tree | 27b8fdc070680750cab1c987fe45c20719024b8d | |
parent | 4e18f0e739775b1340f2f52e3926d69d677166a9 [diff] |
Some more TIFF performance enhancements. Make getSamplesAsBytes() use a preallocated array instead of allocating a new one on each pixel. Also simplifies an if statement so there's less work done per pixel. This reduces the running time by about 20%, and shortens the total time taken by tests run by "mvn package" by about 5%. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/sanselan/trunk@1293744 13f79535-47bb-0310-9956-ffa450edef68