It struck me as wasteful to make this extra list copy of a generator. I was
hoping to manage to return a bool instead of an int (and thus avoid traversing
the dictionary past the first unresolved entry) but at least one caller cares
about the count and this is the easy way forward while still making me
marginally happier.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
Comment Actions
I don't have concrete numbers, but it avoids some function calls and uses only internal details instead of part of the public API.
We can also drop it if it's objectionable, I guess.
Comment Actions
Unless we have evidence that this is performance concerns I would rather keep the simpler (code)