diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-07-18 14:20:46 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-07-18 14:20:46 +0100 |
commit | 52286b38abf010232d3ed27952150efaeb5d7045 (patch) | |
tree | e9a92de3310b91dff3b59d2a73da290fa95a5c9c /src/rabbit_queue_index.erl | |
parent | 2bf91694ddb11c2d54ae1cb23c5e000dcb67bb92 (diff) | |
download | rabbitmq-server-52286b38abf010232d3ed27952150efaeb5d7045.tar.gz |
add a 'todo'
Diffstat (limited to 'src/rabbit_queue_index.erl')
-rw-r--r-- | src/rabbit_queue_index.erl | 5 |
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))). |