Skip to content

Optimize block_on with thread-local runtime - #871

Open
gugu8intel-i9 wants to merge 1 commit into
aerynOS:mainfrom
gugu8intel-i9:patch-1
Open

Optimize block_on with thread-local runtime#871
gugu8intel-i9 wants to merge 1 commit into
aerynOS:mainfrom
gugu8intel-i9:patch-1

Conversation

@gugu8intel-i9

Copy link
Copy Markdown

Refactor block_on to use thread-local cached runtime and improve performance by eliminating allocation overhead. Added the #[inline] attribute to unblock to allow the compiler to inline the function across crate boundaries. Replaced creating and dropping a new runtime::Builder. that is mostly all i did.

Refactor block_on to use thread-local cached runtime and improve performance by eliminating allocation overhead.
@CLAassistant

CLAassistant commented Sep 7, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants