| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | oops | Simon MacMullen | 2013-03-21 | 1 | -1/+1 |
| | | |||||
| * | Merge the two can_sends and tidy up. | Simon MacMullen | 2013-03-21 | 2 | -42/+25 |
| | | |||||
| * | First attempt at merging these two bugs; this compiles at least. | Simon MacMullen | 2013-03-20 | 9 | -50/+362 |
| |\ | |||||
| | * | Merge in default | Simon MacMullen | 2013-03-20 | 6 | -53/+322 |
| | |\ | |||||
| | | * | merge default into bug23749 | Matthias Radestock | 2013-02-21 | 0 | -0/+0 |
| | | |\ | |||||
| | | * | | Well, that was embarassing. | Simon MacMullen | 2013-02-21 | 1 | -1/+1 |
| | | | | | |||||
| | | * | | simplifying refactor | Matthias Radestock | 2013-02-21 | 1 | -12/+12 |
| | | | | | |||||
| | | * | | Correct use of gb_trees APIs... | Simon MacMullen | 2013-02-21 | 1 | -12/+6 |
| | | | | | |||||
| | | * | | Oops | Simon MacMullen | 2013-02-21 | 1 | -14/+7 |
| | | | | | |||||
| | | * | | Use gb_trees rather than dict for performance. | Simon MacMullen | 2013-02-21 | 1 | -15/+21 |
| | | | | | |||||
| | | * | | Remove blocked_ctags, and a few knock-on simplifications. | Simon MacMullen | 2013-02-21 | 2 | -39/+24 |
| | | | | | |||||
| | | * | | simplify queue's basic_consume handler | Matthias Radestock | 2013-02-21 | 1 | -15/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - the call to update_ch_record in the is_ch_blocked(C1) == false branch was superfluos since the preceding update_consumer_count calls update_ch_record - all the checking whether the channel is blocked, and associated branching was just an optimisation. And not a particularly important one, since a) the "a new consumer comes along while its channel is blocked" case is hardly on the critical path, and b) exactly the same check is performed as part of run_message_queue (in deliver_msg_to_consumer/3). So get rid of it. - the is_empty & send_drained logic can be invoked earlier, which allows us to use the #cr we have rather than looking it up again. We can do this since the only case we need to catch here is that of a consumer coming along while the queue is empty already. If it becomes empty as part of run_message_queue then send_drained will be invoked in 'fetch'. | ||||
| | | * | | merge default into bug23749 | Matthias Radestock | 2013-02-20 | 1 | -1/+1 |
| | | |\ \ | |||||
| | | * | | | optimise possibly_unblock | Matthias Radestock | 2013-02-20 | 1 | -15/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | when the channel is blocked there is no point going through the expensive consumer re-partitioning | ||||
| | | * | | | refactor | Matthias Radestock | 2013-02-20 | 1 | -9/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | it's convenient for callers to have maybe_send_drained thread through the state | ||||
| | | * | | | cosmetic - reduce distance to 'default' | Matthias Radestock | 2013-02-20 | 1 | -20/+17 |
| | | | | | | |||||
| | | * | | | oops | Matthias Radestock | 2013-02-20 | 1 | -1/+1 |
| | | | | | | |||||
| | | * | | | cosmetic | Matthias Radestock | 2013-02-20 | 1 | -14/+14 |
| | | | | | | | | | | | | | | | | | | | | | move functions to a better place | ||||
| | | * | | | merge default into bug23749 | Matthias Radestock | 2013-02-20 | 1 | -2/+2 |
| | | |\ \ \ | |||||
| | | * | | | | get rid of maybe_send_drained_cons | Matthias Radestock | 2013-02-20 | 1 | -14/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | and optimise handle_cast/credit along the way | ||||
| | | * | | | | refactor possibly_unblock | Matthias Radestock | 2013-02-20 | 1 | -18/+19 |
| | | | | | | | |||||
| | | * | | | | introduce is_empty(State) helper | Matthias Radestock | 2013-02-20 | 1 | -20/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and in the resulting refactor also remove a non-linear BQS access in handle_info/drop_expired. | ||||
| | | * | | | | cosmetic | Matthias Radestock | 2013-02-20 | 1 | -5/+5 |
| | | | | | | | |||||
| | | * | | | | eliminate non-linear BQS usage | Matthias Radestock | 2013-02-20 | 1 | -1/+2 |
| | | | | | | | |||||
| | | * | | | | cosmetic | Matthias Radestock | 2013-02-20 | 1 | -9/+5 |
| | | | | | | | |||||
| | | * | | | | Only send_drained if we have become empty... | Simon MacMullen | 2013-02-20 | 1 | -9/+13 |
| | | | | | | | |||||
| | | * | | | | Ahem | Simon MacMullen | 2013-02-20 | 1 | -2/+2 |
| | | | | | | | |||||
| | | * | | | | Be more careful about where we send_drained from. | Simon MacMullen | 2013-02-20 | 1 | -7/+25 |
| | | | | | | | |||||
| | | * | | | | Neatness | Simon MacMullen | 2013-02-20 | 1 | -3/+2 |
| | | | | | | | |||||
| | | * | | | | merge default into bug23749 | Matthias Radestock | 2013-02-20 | 12 | -142/+204 |
| | | |\ \ \ \ | |||||
| | | * \ \ \ \ | merge default into bug23749 | Matthias Radestock | 2013-02-14 | 5 | -39/+44 |
| | | |\ \ \ \ \ | |||||
| | | * | | | | | | simplify & optimise maybe_send_drained | Matthias Radestock | 2013-02-12 | 1 | -8/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use BQ:is_empty instead of BQ:len - make use of Stop flag | ||||
| | | * | | | | | | Clear drain flag when we run out of credit. | Simon MacMullen | 2013-02-12 | 1 | -2/+5 |
| | | | | | | | | | |||||
| | | * | | | | | | Remove tags from blocked_ctags when a consumer goes away. | Simon MacMullen | 2013-02-12 | 1 | -2/+4 |
| | | | | | | | | | |||||
| | | * | | | | | | Move blocked_ctags into the limiter. | Simon MacMullen | 2013-02-12 | 2 | -26/+29 |
| | | | | | | | | | |||||
| | | * | | | | | | s/q_state/credits/g | Simon MacMullen | 2013-02-12 | 1 | -15/+15 |
| | | | | | | | | | |||||
| | | * | | | | | | Move rabbit_channel:send_drained/2 invocations into the queue module, and ↵ | Simon MacMullen | 2013-02-12 | 3 | -58/+67 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make sure we send drained for all consumers in drain mode. | ||||
| | | * | | | | | | Merge default | Simon MacMullen | 2013-02-12 | 6 | -53/+312 |
| | | |\ \ \ \ \ \ | |||||
| | | | * | | | | | | minor optimisation | Matthias Radestock | 2013-02-11 | 1 | -2/+3 |
| | | | | | | | | | | |||||
| | | | * | | | | | | some inlining and moving around | Matthias Radestock | 2013-02-11 | 1 | -16/+11 |
| | | | | | | | | | | |||||
| | | | * | | | | | | a spot of inlining | Matthias Radestock | 2013-02-11 | 1 | -4/+1 |
| | | | | | | | | | | |||||
| | | | * | | | | | | Avoid always going through with_exit_handler/2, since that's what the ↵ | Simon MacMullen | 2013-01-31 | 1 | -10/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | comment says! | ||||
| | | | * | | | | | | rabbit_limiter:initial_credit/6. | Simon MacMullen | 2013-01-29 | 4 | -34/+48 |
| | | | | | | | | | | |||||
| | | | * | | | | | | Derp. | Simon MacMullen | 2013-01-29 | 1 | -1/+1 |
| | | | | | | | | | | |||||
| | | | * | | | | | | Reduce distance to default. | Simon MacMullen | 2013-01-29 | 1 | -2/+0 |
| | | | | | | | | | | |||||
| | | | * | | | | | | Merge default | Simon MacMullen | 2013-01-29 | 3 | -34/+35 |
| | | | |\ \ \ \ \ \ | |||||
| | | | * | | | | | | | Unify the various checks before sending, and make sure we don't drop the new ↵ | Simon MacMullen | 2013-01-29 | 2 | -40/+42 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | limiter on the floor. | ||||
| | | | * | | | | | | | inform_limiter -> credit. | Simon MacMullen | 2013-01-29 | 4 | -18/+18 |
| | | | | | | | | | | | |||||
| | | | * | | | | | | | Remove knowledge of delivery-count from the broker. | Simon MacMullen | 2013-01-29 | 2 | -28/+17 |
| | | | | | | | | | | | |||||
| | | | * | | | | | | | Simplify: convert basic.credit_state to basic.credit_drained, which ↵ | Simon MacMullen | 2013-01-29 | 2 | -11/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implicitly asserts that credit is 0, length 0 and drain is true, and tells you how much credit was discarded rather than the new delivery count (so we can soon remove all delivery count code from the broker). | ||||
