[KimDaBa] Reducing memory consumption

Robert L Krawitz rlk at alum.mit.edu
Sun Jan 16 14:44:28 GMT 2005


   From: Eivind <ekj at vestdata.no>
   Date: Sun, 16 Jan 2005 10:57:25 +0100

   On Saturday 15 January 2005 06:36, Robert L Krawitz wrote:
   > MB -> 170 MB).  However, it still seems like 80 MB is a bit high for
   > the image in question, which is somewhere in the range of 5500x3500
   > pixels (18 million pixels).  Perhaps there's some way of reducing it
   > some?

   It ain't nessecarily that high. I'm am not quite sure what the
   current KDE-libraries do, but atleast more and more image-handling
   libraries internally use 4-byte pro pixel in order to store not
   only RGB info, but also an alpha-channel. Doing so is required for
   example to handle png-images properly.

   4*18 million is 72 million, it's atleast in the same ballpark as
   the memory-consumption you are seeing.

True.  So it's particularly critical to avoid unnecessary deep copies.



More information about the Kphotoalbum mailing list