summaryrefslogtreecommitdiff
path: root/src/rabbit_queue_index.erl
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
commit52286b38abf010232d3ed27952150efaeb5d7045 (patch)
treee9a92de3310b91dff3b59d2a73da290fa95a5c9c /src/rabbit_queue_index.erl
parent2bf91694ddb11c2d54ae1cb23c5e000dcb67bb92 (diff)
downloadrabbitmq-server-52286b38abf010232d3ed27952150efaeb5d7045.tar.gz
add a 'todo'
Diffstat (limited to 'src/rabbit_queue_index.erl')
-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 261a4968..91b19976 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))).