ossama-othman / MaRC

MaRC - Map Reprojections and Conversions
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Optimize PhotoImage array accesses. #118

Closed ossama-othman closed 2 years ago

ossama-othman commented 2 years ago

Optimize PhotoImage array accesses by preferring integer addition over multiplication when calculating array indices. Furthermore cache the "nibbled" image edges rather than adding or subtracting nibble values when determining if a pixel is in the image when reading data.