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

Use hash for storing classes in index #775

Open
noha opened this issue Jul 12, 2024 · 0 comments
Open

Use hash for storing classes in index #775

noha opened this issue Jul 12, 2024 · 0 comments

Comments

@noha
Copy link
Contributor

noha commented Jul 12, 2024

Right now we use a 64 byte index key for storing behavior descriptions in the behavior registry. This limits the maximum length of the class name and at the same time wastes a lot of index key space.
To improve the situation class names should be hashed to be used as a key. That would reduce it from 64 bytes to 32 bytes in case of SHA256. The number of classes is not really high (< millions) so we could even use MD5 and reducing the key to 16 bytes instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant