Keep four freed coroutine frames and handlers per io thread (#5302) asio reuses the memory of its coroutine frames, handlers and cancellation slots through a per-thread cache that holds two freed blocks of each kind. A message written through a tcp channel keeps three coroutine frames alive at once: send_one's, the socket's co_write and the one awaiting the async_write. Two of them went back to malloc on every message, so BOOST_ASIO_RECYCLING_ALLOCATOR_CACHE_SIZE raises the cache to four. asio keeps only blocks of up to about 1 KB, so an io thread holds a few KB more at most. The value changes the layout of asio's per-thread state, so it is set before Boost is added and every library compiled here sees the same one.
__________
Type: commit
Hash: 638d8cdae69a26790364f07a8c25abd6dc81afee
Created: today
__________
gr0v1ty/nano-node:638d8cdae69a26790364f07a8c25abd6dc81afee
| Test Case | Status | Duration | Median Deviation | Log | Graph |
|---|---|---|---|---|---|
| 5n4pr_conf_10k_bintree | PASS | 97 s | -8.0 s | GitHub job logs | Show |
| 5n4pr_conf_10k_change | PASS | 121 s | -1.0 s | GitHub job logs | Show |
| 5n4pr_conf_change_dependant | PASS | 101 s | -8.0 s | GitHub job logs | - |
| 5n4pr_conf_change_independant | PASS | 107 s | 1.0 s | GitHub job logs | - |
| 5n4pr_conf_send_dependant | PASS | 101 s | -7.0 s | GitHub job logs | - |
| 5n4pr_conf_send_independant | PASS | 97 s | -13.0 s | GitHub job logs | - |
| 5n4pr_rocks_10k_bintree | PASS | 102 s | -3.0 s | GitHub job logs | - |
| 5n4pr_rocks_10k_change | PASS | 134 s | -18.0 s | GitHub job logs | - |