diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-11-09 20:53:34 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-11-09 21:02:15 +0000 |
commit | 6e3518dfd68d775d530bb6c4835b3e0b0e224e16 (patch) | |
tree | 23175db26c7f3f10f062efdd72edd992eb5e22c9 /tests | |
parent | f07de37ad181a6b106b2d0c2003a61ab14e711bc (diff) | |
download | gstreamer-plugins-bad-6e3518dfd68d775d530bb6c4835b3e0b0e224e16.tar.gz |
pngparse: optimise reading of png files
Read PNG data chunk in one go by letting the parser
base class know the size we need, so that it doesn't
drip-feed us small chunks of data (causing a lot of
reallocs and memcpy in the process) until we have
everything.
Improves parsing performance of very large PNG files
(65MB) from ~13 seconds to a couple of millisecs.
https://bugzilla.gnome.org/show_bug.cgi?id=736176
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions