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 | b8e189feabbb0505125a9d03488c7c3afacde7bf (patch) | |
| tree | e9a92de3310b91dff3b59d2a73da290fa95a5c9c /src | |
| parent | 92fd77450013b71f53a56c76fc7c63c4ec545b4d (diff) | |
| download | rabbitmq-server-git-b8e189feabbb0505125a9d03488c7c3afacde7bf.tar.gz | |
add a 'todo'
Diffstat (limited to 'src')
| -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 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))). |
