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

GCD wrapper uses DividerU64 #1478

Merged
merged 1 commit into from
Aug 24, 2022
Merged

GCD wrapper uses DividerU64 #1478

merged 1 commit into from
Aug 24, 2022

Conversation

fulmicoton
Copy link
Collaborator

No description provided.

Box::new(
self.fastfield_accessor
.iter()
.map(|val| (val - self.base_value) / self.gcd),
.map(|val| self.gcd.divide(val - self.base_value)),
Copy link
Contributor

@PSeitz PSeitz Aug 24, 2022

Choose a reason for hiding this comment

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

if you release a new version of fastdivide with the Div impl, the code could stay the same, which is more readable

@codecov-commenter
Copy link

Codecov Report

Merging #1478 (c45f98c) into main (513f682) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1478   +/-   ##
=======================================
  Coverage   94.08%   94.08%           
=======================================
  Files         239      239           
  Lines       44768    44769    +1     
=======================================
+ Hits        42120    42121    +1     
  Misses       2648     2648           
Impacted Files Coverage Δ
fastfield_codecs/src/lib.rs 96.59% <ø> (ø)
src/fastfield/serializer/mod.rs 90.33% <100.00%> (+0.04%) ⬆️
src/fastfield/writer.rs 91.18% <100.00%> (ø)
src/indexer/merger.rs 98.94% <100.00%> (ø)
src/store/index/mod.rs 97.83% <0.00%> (-0.55%) ⬇️
src/fastfield/reader.rs 88.34% <0.00%> (+0.61%) ⬆️

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

@fulmicoton fulmicoton merged commit 298b5dd into main Aug 24, 2022
@fulmicoton fulmicoton deleted the gcd_is_divide branch August 24, 2022 17:29
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