Skip to content

Potentially store ScriptExtension as a set of bitfields #2

@Manishearth

Description

@Manishearth

We can assign each Script value to a bit and store ScriptExtension as a bitfield made of three u64s. Intersection becomes fast, and we can use popcnt to find if something is single script. We can export constants for each script value to make this easy to use.

cc @crlf0710

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