Skip to content

Java template fix to reduce memory footprint - continued#139

Merged
deepak2016 merged 4 commits into
devfrom
java-memory-fix
Jun 27, 2018
Merged

Java template fix to reduce memory footprint - continued#139
deepak2016 merged 4 commits into
devfrom
java-memory-fix

Conversation

@deepak2016
Copy link
Copy Markdown
Contributor

Fixing import statements for IBaseEntityRequest template
Fixing import statements for IBaseMethodRequest template
Fixing import statements for BaseMethodRequest template
Together these templates impact ~1400 files and these files will start getting optimized import statements with this fix.
Testing:
After generating files using these templates, java sdk has started building with 2GB RAM.

@deepak2016
Copy link
Copy Markdown
Contributor Author

@deepak2016 deepak2016 requested a review from MIchaelMainer June 26, 2018 15:38
Copy link
Copy Markdown
Collaborator

@MIchaelMainer MIchaelMainer left a comment

Choose a reason for hiding this comment

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

Looks good. Is the reason why CreatePackageDefForIBaseEntityRequest exists in BaseJavaModel.template.tt instead of IBaseEntityRequest.java.tt is because all of the other content builders are in BaseJavaModel? On the surface, that helper seems like it should be in the template that uses it.

@deepak2016
Copy link
Copy Markdown
Contributor Author

Yes, these helpers are template file specific and I think, I will move them out from BaseJavaModel.

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.

2 participants