Skip to content

perf: remove an indirection in JumpTable #2437

@DaniPopes

Description

@DaniPopes

JumpTable is currently defined as Arc<BitVec>:

pub struct JumpTable(pub Arc<BitVec<u8>>);

However this setup occurs 2 indirections per lookup, once for the Arc, once for the BitVec (pointer to pointer to bits)

Investigate if we can change this to Arc<BitSlice> or something similar, where the Arc pointer itself is the pointer to the bits

This would require making the field private and exposing more methods for creating the jumpmap and accessing properties

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