diff options
author | Matthew Johnson <mjj29@hecate.matthew.ath.cx> | 2008-02-03 11:44:56 +0000 |
---|---|---|
committer | Matthew Johnson <mjj29@hecate.matthew.ath.cx> | 2008-02-03 11:44:56 +0000 |
commit | 1ae3c61f78a8c62c947e94c7da8656d6849e3a24 (patch) | |
tree | b137e3d54eabc177f14c6fef398c4f0a83f362ba /org | |
parent | 9417607b1ec96688fc602a291dcacf45599ae1e5 (diff) |
bump the ensureBuffers multiple, makes a _huge_ difference
Diffstat (limited to 'org')
-rw-r--r-- | org/freedesktop/dbus/Message.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org/freedesktop/dbus/Message.java b/org/freedesktop/dbus/Message.java index 81164cb..1e3699e 100644 --- a/org/freedesktop/dbus/Message.java +++ b/org/freedesktop/dbus/Message.java @@ -623,13 +623,13 @@ public class Message } else if (data instanceof List) { Object[] contents = ((List) data).toArray(); int diff = i; - ensureBuffers(contents.length*2); + ensureBuffers(contents.length*4); for (Object o: contents) diff = appendone(sigb, i, o); i = diff; } else if (data instanceof Map) { int diff = i; - ensureBuffers(((Map) data).size()*3); + ensureBuffers(((Map) data).size()*6); for (Map.Entry<Object,Object> o: ((Map<Object,Object>) data).entrySet()) diff = appendone(sigb, i, o); if (i == diff) { @@ -644,7 +644,7 @@ public class Message i = diff; } else { Object[] contents = (Object[]) data; - ensureBuffers(contents.length*2); + ensureBuffers(contents.length*4); int diff = i; for (Object o: contents) diff = appendone(sigb, i, o); @@ -661,7 +661,7 @@ public class Message contents = ((Container) data).getParameters(); else contents = (Object[]) data; - ensureBuffers(contents.length*2); + ensureBuffers(contents.length*4); int j = 0; for (i++; sigb[i] != ArgumentType.STRUCT2; i++) i = appendone(sigb, i, contents[j++]); |