Commit 744e0ae
[finagle-memcached] apply offloading of responses after gathering response parts
# Problem
Finagle offloads responses from clients ASAP to free up netty threads.
If a multikey request to memcached is partitioned across memcached endpoints, each response of such subrequest is offloaded.
This means additional inter-thread synchonisation and even additional delay while subresponses are waiting in the offload queue.
# Solution
Offload responses after all subresponses are collected.
JIRA Issues: STOR-8861
Differential Revision: https://phabricator.twitter.biz/D11847231 parent d6872e1 commit 744e0ae
File tree
1 file changed
+7
-0
lines changed- finagle-memcached/src/main/scala/com/twitter/finagle
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
271 | 278 | | |
272 | 279 | | |
273 | 280 | | |
| |||
0 commit comments