Skip to content

Close performance gap between bevy_tasks and rayon #10064

Open
@alice-i-cecile

Description

@alice-i-cecile
  • One is that their executor spins a little more waiting for another task to be ready.
  • For par_for_each stuff, it wakes new threads faster as async executor limits to waking one thread at a time.
  • When it forks (splits current task in 2) it runs one on the current thread and only spawns a task for the other task.

There's probably some other microoptimizations too, but I think the above are the lowish hanging fruit.

From @hymm on Discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TasksTools for parallel and async workC-PerformanceA change motivated by improving speed, memory usage or compile times

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions