Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store components based on hash instead of UUID #2

Open
daniel-thom opened this issue Apr 12, 2024 · 0 comments
Open

Store components based on hash instead of UUID #2

daniel-thom opened this issue Apr 12, 2024 · 0 comments

Comments

@daniel-thom
Copy link
Collaborator

Similar to #73, we could store components based on a hash of their fields' values instead of a UUID. That could enable two features:

  • Applications could call system.add_component(component) with duplicate values and not store it multiple times.
  • We could experiment with serializing denormalized JSON values instead of our current custom code that replaces subcomponents with their UUIDs. De-serializing duplicate values would be cheap. This would lead to much simpler code but larger JSON files. Speed difference is unknown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant