Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove intern calls on FieldMapper#Names for better performance #6747

Closed
wants to merge 1 commit into from

Conversation

kimchy
Copy link
Member

@kimchy kimchy commented Jul 5, 2014

remove internal callas on FieldMappers#Names, we properly reuse FieldMapper, so there is no need to try and call intern in order to reuse the names. This can be heavy with many fields and continuous mapping parsing.

@@ -63,14 +63,14 @@ public Names(String name) {

public Names(String name, String indexName, String indexNameClean, String fullName) {
this(name, indexName, indexNameClean, fullName, fullName);
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Minor, but this looks like it's closing the class/interface (but it's not).

remove internal callas on FieldMappers#Names, we properly reuse FieldMapper, so there is no need to try and call intern in order to reuse the names. This can be heavy with many fields and continuous mapping parsing.
closes elastic#6747
@jpountz
Copy link
Contributor

jpountz commented Jul 8, 2014

LGTM, I quickly looked if there were identify checks for field mappers names and couldn't find one.

@s1monw
Copy link
Contributor

s1monw commented Jul 8, 2014

LGTM

@s1monw s1monw removed the review label Jul 8, 2014
@kimchy kimchy closed this in c9a4697 Jul 8, 2014
kimchy added a commit that referenced this pull request Jul 8, 2014
remove internal callas on FieldMappers#Names, we properly reuse FieldMapper, so there is no need to try and call intern in order to reuse the names. This can be heavy with many fields and continuous mapping parsing.
closes #6747
@clintongormley clintongormley changed the title Remove intern calls on FieldMapper#Names Internal: Remove intern calls on FieldMapper#Names for better performance Jul 16, 2014
@kimchy kimchy deleted the remove_intern branch August 18, 2014 22:17
@clintongormley clintongormley changed the title Internal: Remove intern calls on FieldMapper#Names for better performance Remove intern calls on FieldMapper#Names for better performance Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants