Closed lovasoa closed 4 years ago
Data was copied byte by byte in two nested loops. This changes the code to a single loop, using memcpy to copy one line of data at a time.
I observed a 2% performance improvement on the "decode 512x512 image" benchmark on a 2018 Macbook Pro.
This was branched from #126.
@fintelia : Ok, I updated indexing.
Data was copied byte by byte in two nested loops. This changes the code to a single loop, using memcpy to copy one line of data at a time.
I observed a 2% performance improvement on the "decode 512x512 image" benchmark on a 2018 Macbook Pro.
This was branched from #126.