You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*: remove unnecessary async blocks to save memory (tikv#16541)
closetikv#16540
*: enable linters about async and futures
We should be pedantic about writing async code, as it's easy to write
suboptimal or even bloat code.
See: rust-lang/rust#69826
*: remove unnecessary async blocks to save memory
This commit favors FutureExt::map over async blocks to mitigate
the issue of async block doubled memory usage. Through the sysbench
oltp_read_only test, it was observed that this adjustment resulted
in approximately 26% reduction in memory usage.
See: rust-lang/rust#59087
Signed-off-by: Neil Shen <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Signed-off-by: dbsid <[email protected]>
0 commit comments