Repository navigation
Compare unnamed environments by value - #133
Conversation
|
This does resolve #133, but it's veeeeeeeeeery slow: Created on 2022-03-10 by the reprex package (v2.0.1) This makes me concerned that there's risk of other major performance regressions elsewhere. |
|
Oh that was because I wasn't using a mutable cache of environments, so in |
Conflicts: NEWS.md
|
I think I've realised the general principle: you never want to see the comparison between a given pair of environments more than once. So this: Should only report the different once. |
|
I'm feeling good about this so I've merged it. The next step is to run the testthat revdeps to see if this (or any of the other changes) have introduced any new problems. It's likely to take me a few days to work through any failures, so please let me know if you have any general concerns about this PR, and I'll make sure to hold off on release until they're resolved. |
|
thanks! I've watched the repo -- if you file issues about revdeps & I've got some spare cycles I can try and help resolve what comes out. I'll also try running this on our internal CI to see what comes out. |
|
A mutable cache may break cases such as this: The current implementation is fine because |
|
@AshesITR I'm pretty the logic using pairs prevents that problem, and https://github.com/r-lib/waldo/pull/133/files#diff-4cf1913ccfc0a40d0281afb87562e1e3cd210cb9e34f0311d0cc96425f4230f2R626 tests that we really are caching the pairs, not individual environments. |
|
@MichaelChirico the revdeps look good. There were only 10 problems, mostly caused by #134. I think the only case related to comparing environments by value is #135, which I'm pretty sure will be easy to resolve. httr2 also fails but only because of some bug in CRAN waldo that allowed |
|
@hadley sorry I missed the test case that already covered it. |
Fixes #127. Fixes #117.