-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jsii-dotnet-runtime): Improve .NET Performance
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
- Loading branch information
Showing
9 changed files
with
90 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
node_modules/ | ||
.BUILD_COMPLETED | ||
lerna-debug.log | ||
lerna-debug.log | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
...jsii-dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/IntegrationTestBase.cs
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...-dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ServiceContainerFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using Amazon.JSII.Runtime.Services; | ||
using Xunit.Abstractions; | ||
|
||
namespace Amazon.JSII.Runtime.IntegrationTests | ||
{ | ||
public class ServiceContainerFixture : IDisposable | ||
{ | ||
public ServiceContainerFixture() | ||
{ | ||
Environment.SetEnvironmentVariable("JSII_DEBUG", "true"); | ||
} | ||
|
||
public void SetOverride(ITestOutputHelper outputHelper) | ||
{ | ||
if (ServiceContainer.ServiceProviderOverride == null) | ||
{ | ||
ServiceContainer.ServiceProviderOverride = ServiceContainer.BuildServiceProvider( | ||
new XUnitLoggerFactory(outputHelper) | ||
); | ||
} | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
ServiceContainer.ServiceProviderOverride = null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters