Skip to content

Investigate loop unrolling. #25

Description

@modulovalue

Consider this bitset implementation by lemire is JS https://github.com/lemire/FastBitSet.js:

It appears to manually unroll some loops which might also give us a boost in performance, too, e.g.:

https://github.com/lemire/FastBitSet.js/blob/d673f8ed91b4eb4e0104881aa1ff0402c3203648/FastBitSet.js#L285-L299

The or operation is currently on my hot path and I'm curious whether manually unrolling some loops could help.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions