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

Feat/reduce serialized datastructure sizes #484

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

micheleriva
Copy link
Member

The current PR changes the internal property names for all the trees in Orama in order to reduce their impact on the final bundle size. Each tree node consists of several keys that get repeated multiple times, leading to a misuse of disk space, as these keys could easily be encoded into a single character.

This PR benefits have been tested against several datasets, showing a space-saving factor of about 5%.

Now, I am not sure if we really want to compromise code readability in favor of a 5% disk size saving. It's worth saying that we're editing tree algorithms that much.

@allevo and @raiindev, any thoughts about that?

@vercel
Copy link

vercel bot commented Sep 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
orama-docs ✅ Ready (Inspect) Visit Preview Sep 19, 2023 5:45am

@micheleriva micheleriva merged commit 7ab998b into main Sep 19, 2023
@micheleriva micheleriva deleted the feat/reduce-serialized-datastructure-sizes branch September 19, 2023 16:03
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

Successfully merging this pull request may close these issues.

1 participant