Skip to content

Reuse the Tokio Async Runtime #340

@kdbrooks

Description

@kdbrooks

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Right now every time we call wait_for_future we construct a new Tokio Runtime which involves creating threads and other heavy weight tasks. This impacts performance.

Describe the solution you'd like
I'd like to create a Tokio Runtime once during the _internal module creation and reuse it. I have a PR I'm working on to do this.

Describe alternatives you've considered
Keep code as is and make a runtime often.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions