Skip to content

Optimize ixor  #338

Description

@lemire

Activity

  1. srinathshrestha commented on Sep 26, 2026

    @srinathshrestha

    I checked the current Go implementation against the Java optimization linked here. ixorBitmap still computes the XOR cardinality first and then performs the XOR in a second pass for dense results. On an M4 pro, a prototype that XORs into the receiver first, computes its cardinality, and converts only when sparse improved a 50%-dense case from approximately 742 ns/op to 677 ns/op, with zero allocations in both versions. I’d add benchmarks across dense, sparse, and near-empty results, along with focused in-place correctness tests. Is this issue still available for a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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