Message cache size
hp at redhat.com
Thu Jul 28 03:51:28 EST 2005
On Wed, 2005-07-27 at 17:10 +0100, Ross Burton wrote:
> The current DBus message cache is 5 messages, up to 1 megabyte each.
> Isn't this a little large? My application will happily create 200K
> messages and in low-memory situations (say embedded or handheld systems)
> a message this big should be freed as soon as possible. As the majority
> of messages will be no more than a kilobyte, should the maximum message
> size be set to a few tens of kilobytes instead?
You're probably right, especially since for large messages the overhead
of creating them at all will vastly exceed the overhead saved by the
message cache (most likely, I haven't profiled or anything)
More information about the dbus