[Digikam-users] svn version memory usage

D Bera dbera.web at gmail.com
Sat Oct 14 23:02:38 BST 2006


> > Before start
> >         X 17929 heap 13644 anon 1427
> >
> > digikam first
> >         X 23537 heap 13644 anon 6051
> >         digikam 31574 heap 7152 anon 3228
> >
> > digikam thumbnail cache
> >         X 27153 heap 17260 anon 6051
> >         digikam 31556 heap 7164 anon 3228
> > (-> 100 pixmaps stored in the server)
> >
> > digikam image editor one image
> >         X 34525 heap 18992 anon 11687
> >         digikam 71146 heap 9096 anon 40592
> > (-> widget, canvas and image data of one image, pixmaps)
> >
> > digikam image editor cache full
> >         X no significant change
> >         digikam 120500 heap 9220 anon 89764
> > (-> 40MB DImg cache)
> >
> > digikam image editor closed (cache still full)
> >         X no significant change
> >         digikam 108336, heap 9240 anon 77472
> >
> > digikam closed
> >         X 21900 heap 17616 anon 431

For testing, I changed utilities/imageeditor/editorwindow.cpp:

- EditorWindow::EditorWindow(const char *name)
-           : KMainWindow(0, name, WType_TopLevel)
+ EditorWindow::EditorWindow(const char *name)
+           : KMainWindow(0, name, WType_TopLevel | WDestructiveClose)

which showed substantial reduction in memory when editor window is
closed without any perceivable slowness in reopening the editor window
(I opened/closed the editor window a number of times on different
pictures). Is the hiding of the editorwindow instead of deleting it
_intentional_ ?

Thanks,
- dBera

-- 
-----------------------------------------------------
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user



More information about the Digikam-users mailing list