Skip to content

async_scope::spawn cost a lot in ref counting and heap alloc, how to optimize? #1748

@lixin-wei

Description

@lixin-wei

Hi everyone, I'm using async_scope::spawn in a very hot code path. And I find it's very slow due to the reference counting and heap allocation.

the senders I'm spawning have different scheduelrs(unique scheudler per sender). So ex::bulk doesn't apply here.

I wonder is there any way to optimize or workaround?

can anyone help me? thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions