summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-07-18 14:20:46 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-07-18 14:20:46 +0100
commitb8e189feabbb0505125a9d03488c7c3afacde7bf (patch)
treee9a92de3310b91dff3b59d2a73da290fa95a5c9c /src
parent92fd77450013b71f53a56c76fc7c63c4ec545b4d (diff)
downloadrabbitmq-server-git-b8e189feabbb0505125a9d03488c7c3afacde7bf.tar.gz
add a 'todo'
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_queue_index.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl
index 261a49688d..91b19976c6 100644
--- a/src/rabbit_queue_index.erl
+++ b/src/rabbit_queue_index.erl
@@ -126,6 +126,11 @@
-define(SEGMENT_EXTENSION, ".idx").
+%% TODO: The segment size would be configurable, but deriving all the
+%% other values is quite hairy and quite possibly noticably less
+%% efficient, depending on how clever the compiler is when it comes to
+%% binary generation/matching with constant vs variable lengths.
+
-define(REL_SEQ_BITS, 14).
-define(SEGMENT_ENTRY_COUNT, 16384). %% trunc(math:pow(2,?REL_SEQ_BITS))).