bevyengine / bevyengine/bevy

Reduce uuid usage

Open
#4,612 3 comments 1 reaction 0 assignees View on GitHub
A-Assets C-Code-Quality C-Dependencies
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

The fast majority of the cases only need a locally unique id and not a universally unique id as they are never serialized or imported. Using a counter in those cases would likely be faster than generating a random number. It may also allow reducing the size from 128bit to 64bit. There are a couple of user facing uuid's like type uuid's that actually need to be universally unique. For them we should keep using uuid's or consider switching to random 128bit integers that are not necessarily valid uuid's.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.