Skip to content

Optimise IdSortable by using bitwise operations on a Unit32Array with size 4 #4

@CMCDragonkai

Description

@CMCDragonkai

Is your feature request related to a problem? Please describe.

Currently IdSortable uses bitstrings for construction. This is a bit inefficient. We can use a size 4 Uint32Array and do bitwise operations instead.

Describe the solution you'd like

Have to ensure that we handle the non-aligned bits. Some right shift and left shift should be appropriate.

This shouldn't affect decoding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions