Skip to content

Improve BitSet #3

@badamczewski

Description

@badamczewski

Bit sets currently use 32bit words, this is not optimal since CPUs use 64-bit words and 64bit cache lines.

 public class BitArreintjeFastInnerMapArray
    {
        //Internal since it's used by some other classes (because this is so awesome)
        internal long[] _innerData;

        public BitArreintjeFastInnerMapArray(int height)
        {
            _innerData = new long[height / 64 + 1];
        }
....
....
....

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