[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


hi,

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)
http://g-ecx.images-amazon.com/images/G/01/gno/images/orangeBlue/navPackedSprites_v3._V260607109_.png

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.

thanks,
Zaheer
PS:
heres the backtrace
13882320
|-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,
int)+488
|------png_push_have_row+28
|-------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