Summary:
Is there any reason we shouldn't just cache the chain length everywhere?
Currently the pipeline does a lot of passing of buffers between IOBufQueues, I wonder if we can get even smarter about passing the length around
Test Plan: used in telnet server diff
Reviewed By: hans@fb.com
Subscribers: doug, fugalh, folly-diffs@, jsedgwick, yfeldblum, chalfant
FB internal diff:
D1959167
Signature: t1:
1959167:
1427934568:
eb9a49514b2bb7d157879bb8efa99f12092d5e95
};
Context* ctx_{nullptr};
- folly::IOBufQueue bufQueue_;
+ folly::IOBufQueue bufQueue_{folly::IOBufQueue::cacheChainLength()};
std::shared_ptr<AsyncSocket> socket_{nullptr};
};