Closed hhirtz closed 2 years ago
Base: 52.07% // Head: 49.37% // Decreases project coverage by -2.70%
:warning:
Coverage data is based on head (
ba6c80a
) compared to base (f400e15
). Patch coverage: 0.30% of modified lines in pull request are covered.:exclamation: Current head ba6c80a differs from pull request most recent head 6914432. Consider uploading reports for the commit 6914432 to get more accurate results
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Grid size now use std::num::NonZeroUsize
so that Grid::position_of
cannot panic.
I also added 2D and 3D specializations for Grid::position_of
:
becomes
also did it for Grid::index_of
:
https://godbolt.org/z/PnnbP6Ef6
Benchmarks on a 1000x1000 grid (single-threaded)
before time: [42.831 ms 42.899 ms 42.976 ms]
nonzerousize time: [42.563 ms 42.625 ms 42.695 ms]
specialization time: [33.154 ms 33.301 ms 33.510 ms]
Run the benchmark with
Run the test program with