-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Related * Part of #8992 ### What Improve `re_tuid::Tuid`, and by extension `RowId` and `ChunkId` (which are just typesafe wrappers around `Tuid`) ### Details * Implement `from_str` for `Tuid/RowId/ChunkId` * Slightly modify how Tuid is formatted as a string (in backwards/forwards compatible way!)] * Implement bytemucking * Align to bytes (see below) ### Change `Tuid` alignment from `8` to `1` This will allow us to cast raw bytes into a `&[RowId]`. `arrow-rs` already aligns all allocations to 64 bytes, so _theoretically_ there would be nothing to stop us from already doing this, but this is the "better safe than sorry" approach. `uuid:::Uuuid` is also aligned to bytes, FWIW. * `Tuid::new` becomes ~7% slower * `Tuid::cmp` is unaffected --------- Co-authored-by: Clement Rey <[email protected]>
- Loading branch information
Showing
7 changed files
with
133 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters