[webkit-dev] PNG decoding takes too much memory on amazon.com

zaheer ahmad zaheer.mot at gmail.com
Wed Feb 11 02:58:54 PST 2009


I have cache disabled and on loading amazon.com, the memory consumption on
the linux gtk port is ~32Meg(private dirty RSS).
Approx 14Meg of this is taken by the png decoder for the following image of
size 1296000 bytes which is allocated 9 times. The behavior is same on the
desktop with recent build (r40777)

I dont know if this is a cache or image decoder issue. i would think a
resource already loaded would be reused in the same page even if the cache
is disabled, but doesnt look so. Any pointers would help.

heres the backtrace
|-WTF::fastMalloc(unsigned int)+16
|--WTF::Vector<unsigned int, 0u>::reserveCapacity(unsigned int)+64
|---WTF::Vector<unsigned int, 0u>::expandCapacity(unsigned int)+76
|----WTF::Vector<unsigned int, 0u>::resize(unsigned int)+56
|-----WebCore::PNGImageDecoder::rowAvailable(unsigned char*, unsigned int,
|-------WebCore::PNGImageDecoder::decode(bool) const+48
|--------WebCore::PNGImageDecoder::frameBufferAtIndex(unsigned int)+56
|---------WebCore::ImageSource::createFrameAtIndex(unsigned int)+80
|----------WebCore::BitmapImage::cacheFrame(unsigned int)+80
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090211/35305987/attachment.html>

More information about the webkit-dev mailing list