This makes deleting a specific filename entry faster and easier.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGe98f7c5babd7: mergeresult: make actionmapping a dict of dict instead of dict of lists
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
mercurial/merge.py | ||
---|---|---|
597 | Having the separate index is useful and I think the new refactored data structure in this patch is better. But I still don't like having the (data, message) stored redundantly, as it introduces a synchronization problem. What do you think about changing self._actionmapping to be a dict of sets of filenames. The main reason not to do this would be if the extra dict lookup in self._filemapping to retrieve (data, message) adds overhead. The many callers of getactions() could be performance sensitive, I'm not sure... |
Having the separate index is useful and I think the new refactored data structure in this patch is better. But I still don't like having the (data, message) stored redundantly, as it introduces a synchronization problem.
What do you think about changing self._actionmapping to be a dict of sets of filenames. The main reason not to do this would be if the extra dict lookup in self._filemapping to retrieve (data, message) adds overhead. The many callers of getactions() could be performance sensitive, I'm not sure...