Re: Images & RAM consumption [was: Is SM2 mail a slug...]
"William L. Hartzell" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Felix Miata wrote: > On 2009/12/18 22:17 (GMT+0100) Oliver Kluge composed: > >> Ilya Zakharevich wrote: > >>>> Are you implying that FF stores image objects uncompressed? > >>> ??? Do you know ANY graphic program which does otherwise? > >> FF is no "graphics program". The only reason why graphics programs store >> images uncompressed is that it is necessary for manipulation. > >> FF just displays images and it doesn't make any sense to decode all >> images to uncompressed and keep them in memory uncompressed > > I'm no programmer, but over many years of Mozilla development I've spent a > lot of time hanging out in the core Moz devs IRC channels, and have been able > to comprehend quite a bit of their discussion. IIUC, Ilya is right about this > - though it seems to make no sense to an core dev outsider, image files are > just DOM objects converted on load to an internal format used by the DOM, and > grow immensely during the conversion. Why convert them? Could not the rendering be done at display time, ie during WM_Paint? -- Bill <Thanks, a Million>