Skip to content

Simplify PerHierarchyAndLexicographicalOrderFieldComparator and make … - #146

Merged
jungm merged 2 commits into
apache:masterfrom
rmannibucau:fix/simplify-PerHierarchyAndLexicographicalOrderFieldComparator
Aug 26, 2026
Merged

Simplify PerHierarchyAndLexicographicalOrderFieldComparator and make …#146
jungm merged 2 commits into
apache:masterfrom
rmannibucau:fix/simplify-PerHierarchyAndLexicographicalOrderFieldComparator

Conversation

@rmannibucau

Copy link
Copy Markdown
Contributor

…its cache stable per type


private int distance(final String o1) {
return distances.getOrDefault(o1, slowDistance(o1));
private void populateDistances() {

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be worth using visibility check to reduce the cache size but this is already better overall

@jungm
jungm merged commit a31d3fc into apache:masterAug 26, 2026
2 of 3 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@rmannibucau@jungm