Skip to content

Commit

Permalink
Efficacy sampler: Enabled gcServer setting; this seems to result in a…
Browse files Browse the repository at this point in the history
… significant performance improvement; it may also prevent a sporadic ExecutionEngine exception.
  • Loading branch information
colgreen committed May 16, 2017
1 parent 0a01cbe commit 51d99d0
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Box2dTestHarness/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/EfficacySampler/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
<runtime>
<!-- Enable server GC as an attempt to prevent the following exception: -->
<!-- System.ExecutionEngineException occurred HResult=0x80131506 -->
<!-- See: http://stackoverflow.com/questions/7531860/why-does-concurrent-gc-sometimes-cause-executionengineexception-per-msdn -->
<!-- The exception is sporadic, sometime not occuring for days, sometime will happen within ninutes of the efficay sample process starting. -->
<gcServer enabled="true"/>
</runtime>
</configuration>
2 changes: 1 addition & 1 deletion src/SharpNeatConsole/SharpNeatConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
Expand Down
10 changes: 9 additions & 1 deletion src/SharpNeatConsole/app.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
<runtime>
<!-- SharpNEAT has been obervsed to run signifiantly faster with the server GC -->
<!-- The SharpNEAT workload is also more akin to a server workload, so this is likely the better choice overall. -->
<gcServer enabled="true"/>
</runtime>
</configuration>
7 changes: 6 additions & 1 deletion src/SharpNeatGUI/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
<runtime>
<!-- SharpNEAT has been obervsed to run signifiantly faster with the server GC -->
<!-- The SharpNEAT workload is also more akin to a server workload, so this is likely the better choice overall. -->
<gcServer enabled="true"/>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
</configuration>
15 changes: 11 additions & 4 deletions src/SharpNeatGUI/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/SharpNeatGUI/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/SharpNeatLib/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51d99d0

Please sign in to comment.