Open CMCDragonkai opened 2 years ago
Currently IdSortable uses bitstrings for construction. This is a bit inefficient. We can use a size 4 Uint32Array and do bitwise operations instead.
Have to ensure that we handle the non-aligned bits. Some right shift and left shift should be appropriate.
This shouldn't affect decoding.
Benchmarks should be done to ensure that we can actually test how more performance it is.
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.