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

feat(jsii-dotnet-runtime): Improve .NET Performance #305

Merged
merged 4 commits into from
Nov 12, 2018

Conversation

costleya
Copy link
Contributor

@costleya costleya commented Nov 9, 2018

The .NET runtime performace has been enhanced by adding an Assembly Load cache to JsiiTypeAttributeBase to avoid expensive repeated
use of reflection and file system access.

Compliance tests now share a client to speed up execution and avoid problems with cache usage.

.NET integration tests now hard-reference the .NET runtime project, and has been added to the runtime solution. There is no disadvantage to doing this,
and it makes development easier.

Resolves #304

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The .NET runtime performace has been enhanced by adding an Assembly Load cache to JsiiTypeAttributeBase to avoid expensive repeated
use of reflection and file system access.

Compliance tests now share a client to speed up execution and avoid problems with cache usage.

.NET integration tests now hard-reference the .NET runtime project, and has been added to the runtime solution. There is no disadvantage to doing this,
and it makes development easier.

Resolves aws#304
@costleya
Copy link
Contributor Author

costleya commented Nov 9, 2018

Rough metrics, a CI/CD pipeline (CodeCommit/CodeBuild/CodePipeline):
Before: 10.535 seconds
After: 0.932 seconds

The build script for jsii-dotnet-runtime built the solution, which would include the integration tests now that they are
added to the solution. The script now only builds the runtime (and implicitly its dependencies).
@costleya costleya removed the request for review from mpiroc November 9, 2018 04:06
@rix0rrr
Copy link
Contributor

rix0rrr commented Nov 9, 2018

yay

Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

This is great!

P.S. any stats on before/after in terms of performance improvement?

@costleya costleya merged commit a55fe31 into aws:master Nov 12, 2018
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.

5 participants