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

Isolating sstable and stacker in independant crates. #1718

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

fulmicoton
Copy link
Collaborator

Both crate will be used in the new (optional + dynamic) fastfield work.

@fulmicoton fulmicoton force-pushed the stacker-sstable-refactor branch 5 times, most recently from 5a6dcb4 to c7f6bdc Compare December 12, 2022 06:47
@fulmicoton fulmicoton marked this pull request as ready for review December 12, 2022 06:51
@fulmicoton fulmicoton force-pushed the stacker-sstable-refactor branch 2 times, most recently from dddebc2 to 6cae790 Compare December 12, 2022 07:21
Both crate will be used in the new (optional + dynamic) fastfield work.
@fulmicoton fulmicoton force-pushed the stacker-sstable-refactor branch 2 times, most recently from 1e45eac to 59a11c5 Compare December 12, 2022 08:27
///
/// The quirky API has the benefit of avoiding
/// the computation of the hash of the key twice,
/// or copying the key as long as there is no insert.
pub struct TermHashMap {
pub struct ArenaHashMap {
Copy link
Contributor

@PSeitz PSeitz Dec 12, 2022

Choose a reason for hiding this comment

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

I think the new name is too generic, the implementation is very specific, mapping &[u8] keys to ids

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah... So Term will soon be incorrect, as I use the stacker with field names as keys in dynamic fast fields.

I could have something like ArenaBytesHashMap or something like this, but I think at this point ArenaHashMap is ok.

@fulmicoton fulmicoton merged commit 136a8f4 into main Dec 13, 2022
@fulmicoton fulmicoton deleted the stacker-sstable-refactor branch December 13, 2022 02:44
This was referenced Jan 13, 2023
Hodkinson pushed a commit to Hodkinson/tantivy that referenced this pull request Jan 30, 2023
Both crate will be used in the new (optional + dynamic) fastfield work.
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