Commit 69befbf8 authored by Dave Watson's avatar Dave Watson Committed by Viswanath Sivakumar

AsyncSocketHandler cacheChainLength

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
parent 585616f7
...@@ -146,7 +146,7 @@ class AsyncSocketHandler ...@@ -146,7 +146,7 @@ class AsyncSocketHandler
}; };
Context* ctx_{nullptr}; Context* ctx_{nullptr};
folly::IOBufQueue bufQueue_; folly::IOBufQueue bufQueue_{folly::IOBufQueue::cacheChainLength()};
std::shared_ptr<AsyncSocket> socket_{nullptr}; std::shared_ptr<AsyncSocket> socket_{nullptr};
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment