Skip to content

Global shared job queue #8

Open
@QuarticCat

Description

Currently _popReadyJob takes O(n) time to find the oldest job, which doesn't seem to scale well. I'm wondering if it's better to use a global queue (list) to record all shared jobs. In each heartbeat, the worker enqueues a shared job if it doesn't have a shared job in the queue already. And to pop a ready job, just dequeue.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions