summaryrefslogtreecommitdiff
path: root/lib/gras_impl/input_buffer_queues.hpp
diff options
context:
space:
mode:
authorJosh Blum2012-12-05 02:15:06 -0800
committerJosh Blum2012-12-05 02:15:06 -0800
commit094a5945da96ce202eacb665cf401ab96c6c1d95 (patch)
tree5d226d90757cc12804b031ee43227b1608078b30 /lib/gras_impl/input_buffer_queues.hpp
parenta1449c97eefa1635680ede98f61ab3538c56eb21 (diff)
downloadsandhi-094a5945da96ce202eacb665cf401ab96c6c1d95.tar.gz
sandhi-094a5945da96ce202eacb665cf401ab96c6c1d95.tar.bz2
sandhi-094a5945da96ce202eacb665cf401ab96c6c1d95.zip
tag is just an offset and object, created stream tag and pkt message
Diffstat (limited to 'lib/gras_impl/input_buffer_queues.hpp')
-rw-r--r--lib/gras_impl/input_buffer_queues.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/gras_impl/input_buffer_queues.hpp b/lib/gras_impl/input_buffer_queues.hpp
index e8b994b..af0cf37 100644
--- a/lib/gras_impl/input_buffer_queues.hpp
+++ b/lib/gras_impl/input_buffer_queues.hpp
@@ -53,12 +53,7 @@ struct InputBufferQueues
if (_queues[i].empty()) return get_null_buff();
//there are enough enqueued bytes, but not in the front buffer
- const bool must_accumulate = _queues[i].front().length < _reserve_bytes[i];
-
- //should we accumulate? a guess at heuristic improvement
- const bool should_accumulate = _queues[i].front().length <= 128;
-
- if (must_accumulate or should_accumulate) this->accumulate(i);
+ if (_queues[i].front().length < _reserve_bytes[i]) this->accumulate(i);
ASSERT(_queues[i].front().length >= _reserve_bytes[i]);