maekawatoshiki edited PR #6066 from uint/dev to main:
This PR makes the changes mentioned at https://github.com/bytecodealliance/wasmtime/pull/5978 as future works. Effectively closes #5804.
Specifically,
EntitySet::cardinality()implementation is modified for simplicity.
jameysharp submitted PR review.
jameysharp submitted PR review.
jameysharp created PR review comment:
Would you make this case be something greater than 64 instead of 42? That way it tests when
lengrows to a larger number ofusizeelements, and also when it shrinks back to the smaller number of elements.If you make it 100, then we can also test that the values added below don't get double-counted when the underlying vector shrinks and re-grows.
jameysharp created PR review comment:
This test currently only adds values in ascending order. Let's check that it works out of order too:
m.insert(E(1)); assert!(m.cardinality() == 1); m.insert(E(0)); assert!(m.cardinality() == 2); m.insert(E(1)); assert!(m.cardinality() == 2);
maekawatoshiki updated PR #6066 from uint/dev to main.
maekawatoshiki updated PR #6066 from uint/dev to main.
maekawatoshiki requested jameysharp for a review on PR #6066.
jameysharp submitted PR review.
jameysharp merged PR #6066.
Last updated: Dec 06 2025 at 06:05 UTC