Reduce size of message cache

This commit is contained in:
Ross Burton 2005-07-27 19:38:41 +00:00
parent 915100a376
commit c9c16dd087
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-07-27 Ross Burton <ross@openedhand.com>
* dbus/dbus-message.c:
Reduce the size of the maximum cached message to 10K.
2005-07-25 Ross Burton <ross@openedhand.com>
* glib/dbus-gproxy.c:

View file

@ -510,7 +510,7 @@ dbus_message_finalize (DBusMessage *message)
*/
/** Avoid caching huge messages */
#define MAX_MESSAGE_SIZE_TO_CACHE _DBUS_ONE_MEGABYTE
#define MAX_MESSAGE_SIZE_TO_CACHE 10 * _DBUS_ONE_KILOBYTE
/** Avoid caching too many messages */
#define MAX_MESSAGE_CACHE_SIZE 5