diff options
| author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-01-17 12:19:31 +0000 |
|---|---|---|
| committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-01-17 12:19:31 +0000 |
| commit | 72e74a0fea033d1091c07b9a4fcc369422b60946 (patch) | |
| tree | e02ac8b53fe9b947306053118e56b148ff4f2a69 /src/rabbit.erl | |
| parent | aee2983d79bde3725ebdaf5e71e9f1dee4115d52 (diff) | |
| download | rabbitmq-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
