mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-01 03:18:07 +02:00
Reduce size of message cache
This commit is contained in:
parent
915100a376
commit
c9c16dd087
2 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue