summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2009-09-08 11:18:26 +0100
committerMatthias Radestock <matthias@lshift.net>2009-09-08 11:18:26 +0100
commitf7aaa4f2423f05cadaa1c04a9fe684bedfd29b16 (patch)
tree04f8238ebd83142d73b6203e0ca8ab5e1e5f48b2 /include
parent6d89e86148174f2abc8a83ddb71555c498a25a16 (diff)
downloadrabbitmq-server-git-f7aaa4f2423f05cadaa1c04a9fe684bedfd29b16.tar.gz
change guid to a binary, using the md5 of term_to_binary
The main motivation is to reduce the memory and on-disk footprint of the guid from ~34 bytes to 16. But it turns out that this actually results in a speed improvement of a few percent as well, even for non-persistent messaging, presumably due to the memory management effects and the fact that 16 byte binaries are easier to copy between processes than the deep(ish) original guid structure.
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index c17ac7eb5a..095044e797 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -89,7 +89,7 @@
-type(file_open_mode() :: any()).
%% this is really an abstract type, but dialyzer does not support them
--type(guid() :: any()).
+-type(guid() :: binary()).
-type(txn() :: guid()).
-type(pkey() :: guid()).
-type(r(Kind) ::