Memory consumption reduction
- From: Philip Van Hoof <spam pvanhoof be>
- To: tinymail-devel-list gnome org
- Subject: Memory consumption reduction
- Date: Thu, 19 Oct 2006 20:49:31 +0200
I have reduced another 10% average memory usage, especially noticeable
on large folders, by cutting unused features from Camel.
I'm using this in the libtinymail-camel/camel-lite/camel code:
#ifdef NON_TINYMAIL_FEATURES
#endif
Disabled API and features so far are references and size in the
CamelFolderSummary information.
The 10% is measured using valgrind. For example the reference allocation
accounted for 7% memory usage. The 8 bytes per header saved by not
having the pointer in the CamelMessageInfoBase struct is what I on
average suspect to save another 3%.
--
Philip Van Hoof, software developer at x-tend
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
work: vanhoof at x-tend dot be
http://www.pvanhoof.be - http://www.x-tend.be
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]