diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-12-03 17:00:20 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-12-03 17:00:20 +0000 |
| commit | eae92cf1d4165cd1652691d442fbc0a4c7fdc130 (patch) | |
| tree | cf3653d7b7ab02bc21d50ade12c01dbd39b0b139 | |
| parent | a8a36d800b223995175f0d7a4d41debf354528f5 (diff) | |
| download | rabbitmq-server-git-eae92cf1d4165cd1652691d442fbc0a4c7fdc130.tar.gz | |
Make the arrays fixed size and tell them the max size. The don't actually take this much space initally, but it makes them a bit faster as they can make more sensible balancing decisions, we think.
| -rw-r--r-- | src/rabbit_queue_index.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl index e28ceeeb30..970e36f61d 100644 --- a/src/rabbit_queue_index.erl +++ b/src/rabbit_queue_index.erl @@ -420,7 +420,7 @@ blank_state(QueueName) -> }. journal_new() -> - array:new([{default, undefined}]). + array:new([{default, undefined}, fixed, {size, ?SEGMENT_ENTRY_COUNT}]). rev_sort(List) -> lists:sort(fun (A, B) -> B < A end, List). |
