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

JBIDE-15398 CDI Builder is sloooow #141

Merged
merged 1 commit into from
Sep 23, 2013

Conversation

scabanovich
Copy link
Contributor

Methods CDICoreNature.getAllAnnotations() and
DefinitionContext.getAnnotation(String)
are optimazed in case of many dependencies in workspace.

Existing tests for dependent projects must pass.

return getDefinitions().getAllAnnotations();
}
List<CDICoreNature> ls = CDICoreNature.toList(getCDIProjects(true));
Copy link
Member

Choose a reason for hiding this comment

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

Calling getCDIProjects(true) twice in a row (after L258) doesn't seem like a good idea. You should store the result in a local variable thus avoiding unnecessary processing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Methods CDICoreNature.getAllAnnotations() and
DefinitionContext.getAnnotation(String)
are optimazed in case of many dependencies in workspace.

Existing tests for dependent projects must pass.
@alexeykazakov alexeykazakov merged commit 5e0ce05 into jbosstools:master Sep 23, 2013
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.

None yet

4 participants