[sfnt] Speed up PNG image loading

System Internals / FreeType - Behdad Esfahbod [behdad.org] - 15 August 2017 23:46 EDT

This reduces the overhead of `premultiply_data' by 60%.

- src/sfnt/pngshim.c (premultiply_data): Provide code which uses gcc's (and clang's) `vector_byte' attribute to process 4 pixels at a time.

c9d7c03 [sfnt] Speed up PNG image loading.
ChangeLog | 10 ++++++++++
src/sfnt/pngshim.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++---
2 files changed, 60 insertions(+), 3 deletions(-)

Upstream: git.savannah.gnu.org


  • Share