Skip to content

Commit 07b85f6

Browse files
committed
Clarify IO_BATCH_SIZE in betas -> deltas (not gammas!) comment
1 parent 605eb85 commit 07b85f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/rabbit_variable_queue.erl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@
178178
%% (betas+gammas+delta)/(target_ram_count+betas+gammas+delta). I.e. as
179179
%% the target_ram_count shrinks to 0, so must betas and gammas.
180180
%%
181-
%% The conversion of betas to gammas is done in batches of at least
182-
%% ?IO_BATCH_SIZE. This value should not be too small, otherwise the
183-
%% frequent operations on the queues of q2 and q3 will not be
184-
%% effectively amortised (switching the direction of queue access
185-
%% defeats amortisation). Note that there is a natural upper bound due
186-
%% to credit_flow limits on the alpha to beta conversion.
181+
%% The conversion of betas to deltas is done if there are at least
182+
%% ?IO_BATCH_SIZE betas in q2 & q3. This value should not be too small,
183+
%% otherwise the frequent operations on the queues of q2 and q3 will not be
184+
%% effectively amortised (switching the direction of queue access defeats
185+
%% amortisation). Note that there is a natural upper bound due to credit_flow
186+
%% limits on the alpha to beta conversion.
187187
%%
188188
%% The conversion from alphas to betas is chunked due to the
189189
%% credit_flow limits of the msg_store. This further smooths the

0 commit comments

Comments
 (0)