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

chore: deprecate default bitwidths in the KAMT/AMT #1831

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Aug 2, 2023

  1. We don't intentionally use these anywhere.
  2. We do unintentionally use these where we shouldn't (Map::load uses wrong bitwidth in state checks (use Map2 everywhere) builtin-actors#1346).

fixes #1828

1. We don't intentionally use these anywhere.
2. We _do_ unintentionally use these where we
shouldn't (filecoin-project/builtin-actors#1346).

fixes #1828
@Stebalien Stebalien force-pushed the chore/deprecate-default-bit-widths branch from ea6b1ac to f42072d Compare August 2, 2023 23:54
@Stebalien Stebalien requested a review from anorth August 2, 2023 23:54
@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2023

Codecov Report

Merging #1831 (d3e13f5) into master (0f247eb) will decrease coverage by 18.85%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1831       +/-   ##
===========================================
- Coverage   75.29%   56.44%   -18.85%     
===========================================
  Files         149      149               
  Lines       14575    14577        +2     
===========================================
- Hits        10974     8228     -2746     
- Misses       3601     6349     +2748     
Files Changed Coverage Δ
ipld/hamt/src/hamt.rs 84.27% <ø> (ø)
ipld/kamt/src/kamt.rs 71.05% <ø> (ø)
ipld/hamt/src/lib.rs 100.00% <100.00%> (ø)
ipld/kamt/src/lib.rs 100.00% <100.00%> (ø)

... and 59 files with indirect coverage changes

@@ -56,7 +62,7 @@ fn insert(c: &mut Criterion) {
c.bench_function("KAMT bulk insert (no flush)", |b| {
b.iter(|| {
let db = fvm_ipld_blockstore::MemoryBlockstore::default();
let mut a = BKamt::new(&db);
let mut a = BKamt::new_with_config(&db, Config::default());
Copy link
Member

Choose a reason for hiding this comment

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

TEST_CONFIG here too?

@Stebalien Stebalien enabled auto-merge (squash) August 3, 2023 02:00
@Stebalien Stebalien disabled auto-merge August 3, 2023 02:00
@Stebalien Stebalien enabled auto-merge (squash) August 3, 2023 02:01
@Stebalien Stebalien merged commit bada773 into master Aug 3, 2023
11 of 12 checks passed
@Stebalien Stebalien deleted the chore/deprecate-default-bit-widths branch August 3, 2023 02: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.

Deprecate Hamt::load
3 participants