Skip to content

Implement batching fill/drain methods on MpmcArrayQueue #180

@nitsanw

Description

@nitsanw

Current impl:
https://github.com/JCTools/JCTools/blob/master/jctools-core/src/main/java/org/jctools/queues/MpmcArrayQueue.java#L330
Offers the API but is not actually batching the expensive operation which is the CAS. A better implementation would look ahead for a clear slot and attempt a batch CAS increment to it, followed by filling the slots up to, and including it (sequence checking each one).

Metadata

Metadata

Assignees

No one assigned

    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