Skip to content

Rename ArrayEq/Hash Precision to EqMode#8214

Merged
AdamGS merged 2 commits into
developfrom
adamg/rename-percision-to-accuracy
Jun 5, 2026
Merged

Rename ArrayEq/Hash Precision to EqMode#8214
AdamGS merged 2 commits into
developfrom
adamg/rename-percision-to-accuracy

Conversation

@AdamGS
Copy link
Copy Markdown
Contributor

@AdamGS AdamGS commented Jun 2, 2026

Summary

This PR renames the Precision enum that we use to do array hashing and equality checks to Accuracy, as we already have a Precision enum we use for stats, that is also part of the binary format.

API Changes

Just the renamed enum, which should be relatively minor.

Testing

N/A

@AdamGS AdamGS added the changelog/chore A trivial change label Jun 2, 2026
@AdamGS AdamGS requested review from a10y, gatesn and joseph-isaacs and removed request for a10y, gatesn and joseph-isaacs June 2, 2026 12:54
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jun 2, 2026

Merging this PR will not alter performance

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

✅ 1513 untouched benchmarks


Comparing adamg/rename-percision-to-accuracy (43f8e82) with develop (71e8d12)

Open in CodSpeed

Copy link
Copy Markdown
Contributor

@joseph-isaacs joseph-isaacs left a comment

Choose a reason for hiding this comment

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

accuracy is the wrong word

@joseph-isaacs
Copy link
Copy Markdown
Contributor

exactness?

@AdamGS
Copy link
Copy Markdown
Contributor Author

AdamGS commented Jun 2, 2026

how about splitting it into two functions on the same trait? the enum seems confusing

@a10y
Copy link
Copy Markdown
Contributor

a10y commented Jun 2, 2026

should we just call this EqMode or something?

@AdamGS AdamGS changed the title Rename percision to accuracy Rename ArrayEq/Hash Precision to EqMode Jun 5, 2026

impl ArrayHash for ALPData {
fn array_hash<H: Hasher>(&self, state: &mut H, _precision: Precision) {
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: EqMode) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should call these mode?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

there are like 10 million of them, I changed the trait so future impls will get filled in by IDEs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is a simple find and replace

AdamGS added 2 commits June 5, 2026 16:27
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
@AdamGS AdamGS force-pushed the adamg/rename-percision-to-accuracy branch from c39a1c6 to 43f8e82 Compare June 5, 2026 15:28
@AdamGS AdamGS enabled auto-merge (squash) June 5, 2026 15:28
@AdamGS AdamGS disabled auto-merge June 5, 2026 15:53
@AdamGS AdamGS merged commit e06d80b into develop Jun 5, 2026
111 of 115 checks passed
@AdamGS AdamGS deleted the adamg/rename-percision-to-accuracy branch June 5, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants