Skip to content

Simplify PerHierarchyAndLexicographicalOrderFieldComparator and make … - #146

Open
rmannibucau wants to merge 1 commit into
apache:masterfrom
rmannibucau:fix/simplify-PerHierarchyAndLexicographicalOrderFieldComparator
Open

Simplify PerHierarchyAndLexicographicalOrderFieldComparator and make …#146
rmannibucau wants to merge 1 commit 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
Contributor Author

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

Sign up for free to 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.

1 participant