diff options
| author | Simon MacMullen <simon@lshift.net> | 2010-04-19 13:37:32 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@lshift.net> | 2010-04-19 13:37:32 +0100 |
| commit | 5cfa6ee0d45225df5b14ea51e8003aa9f551e873 (patch) | |
| tree | df26580138a71df9414cb31ffdf944361557a791 | |
| parent | 814aabb780c3aa3dc848fe936a737b7f811d6218 (diff) | |
| download | rabbitmq-server-git-5cfa6ee0d45225df5b14ea51e8003aa9f551e873.tar.gz | |
orddict is much faster given we only have a tiny dict.
| -rw-r--r-- | src/delegate.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/delegate.erl b/src/delegate.erl index 517f29f27b..5a2a011af6 100644 --- a/src/delegate.erl +++ b/src/delegate.erl @@ -93,14 +93,14 @@ internal_cast(Node, Thunk) when is_atom(Node) -> %%---------------------------------------------------------------------------- split_delegate_per_node(Pids) -> - dict:to_list( + orddict:to_list( lists:foldl( fun (Pid, D) -> - dict:update(node(Pid), + orddict:update(node(Pid), fun (Pids1) -> [Pid | Pids1] end, [Pid], D) end, - dict:new(), Pids)). + orddict:new(), Pids)). call_per_node([{Node, Pids}], FPid) when Node == node() -> local_delegate(Pids, FPid); |
