Skip to content

Investigate loop unrolling. #25

@modulovalue

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.

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