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

Separate backend database into {Entry, Meet, Lifter} #360

Open
sstangl opened this issue May 26, 2024 · 0 comments
Open

Separate backend database into {Entry, Meet, Lifter} #360

sstangl opened this issue May 26, 2024 · 0 comments

Comments

@sstangl
Copy link
Contributor

sstangl commented May 26, 2024

The backend database currently maintains an []Entry with large tuples containing a large amount of repetitive information, namely the lifter and meet information. Regardless of how the data is stored in CSV files, for purposes of the server, it would be significantly more efficient to process the data into separate {Meet, Entry, Lifter} structs with links between them.

That would decrease the size of []Entry, which means that more Entry structs fit on a cache line, so the leaderboard logic gets faster. Searching for meets can also be over []Meet, which is a much more efficient representation.

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