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

Hiding useless symbols and removing code. #1522

Merged
merged 1 commit into from
Sep 16, 2022
Merged

Conversation

fulmicoton
Copy link
Collaborator

No description provided.

@fulmicoton fulmicoton marked this pull request as ready for review September 16, 2022 03:24
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2022

Codecov Report

Merging #1522 (2ad02c2) into main (e029fdf) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1522   +/-   ##
=======================================
  Coverage   94.07%   94.08%           
=======================================
  Files         244      244           
  Lines       45118    45088   -30     
=======================================
- Hits        42445    42421   -24     
+ Misses       2673     2667    -6     
Impacted Files Coverage Δ
fastfield_codecs/src/lib.rs 99.33% <ø> (+0.32%) ⬆️
fastfield_codecs/src/main.rs 1.25% <ø> (+0.12%) ⬆️
src/fastfield/mod.rs 96.18% <ø> (ø)
src/fastfield/serializer/mod.rs 100.00% <ø> (ø)
src/fastfield/writer.rs 88.71% <100.00%> (-0.18%) ⬇️
src/indexer/merger.rs 98.89% <100.00%> (-0.02%) ⬇️
src/fastfield/multivalued/mod.rs 96.37% <0.00%> (-2.60%) ⬇️
bitpacker/src/bitpacker.rs 97.05% <0.00%> (+0.98%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -132,14 +133,6 @@ pub const ALL_CODEC_TYPES: [FastFieldCodecType; 3] = [
FastFieldCodecType::Linear,
];

#[derive(Debug, Clone)]
/// Statistics are used in codec detection and stored in the fast field footer.
pub struct FastFieldStats {
Copy link
Contributor

Choose a reason for hiding this comment

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

I was thinking about going the other way and replace all the methods with returning the stats

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You can do a follow up PR if you see an opportunity to simplify the code.

@fulmicoton fulmicoton merged commit 64f08a1 into main Sep 16, 2022
@fulmicoton fulmicoton deleted the hiding-useless-symbols branch September 16, 2022 05:42
This was referenced Jan 13, 2023
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.

3 participants