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

Binary vocabulary serialization #544

Merged
merged 12 commits into from Jan 20, 2022

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Jan 17, 2022

This should speed up the reading of the vocabulary on start up.

There are yet several TODOs, and we can possibly add additional
compression.

We currently write to a text file in the vocabularyMerger, and later write to a CompactStringVector in the prefixCompression. This will lead to wrongfully escaped newlines and tabs in the vocabulary.
TODO: Directly work on CompactStringVectors, and
enable them to be lazily loaded from disk when read in a linear fashion.
Required:
- Tests for the CompactStringVector
- Documentation for the new code.
- Maybe progress for the vocabulary reading.
- A converter for old Vocabulary files.
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1-1 with Johannes, started review of this PR (5/14 files)

Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1-1 with Johannes, thank you for this great PR, it will save us much valuable lifetime!

@hannahbast hannahbast merged commit be7d7e1 into ad-freiburg:master Jan 20, 2022
@joka921 joka921 deleted the BinaryVocabularySerialization branch January 25, 2022 15:15
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.

None yet

2 participants