summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-01-17 12:19:31 +0000
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-01-17 12:19:31 +0000
commit72e74a0fea033d1091c07b9a4fcc369422b60946 (patch)
treee02ac8b53fe9b947306053118e56b148ff4f2a69 /src/rabbit.erl
parentaee2983d79bde3725ebdaf5e71e9f1dee4115d52 (diff)
downloadrabbitmq-server-git-72e74a0fea033d1091c07b9a4fcc369422b60946.tar.gz
Split guid/0 in guid/0 and the faster fast_guid/0.
The first function works like the old one (hashes the {serial, counter} each time. The second function (fast_guid/0) hashes the serial once, and the XORs it with the counter each time a new guid is needed. Thus, it is more predictable but should not produce less unique guids. If the fast function is used when generating ids for messages, it leads to a considerable speedup when testing with BroadcastMain (from 67k msg/s to 75k msg/s).
Diffstat (limited to 'src/rabbit.erl')
0 files changed, 0 insertions, 0 deletions