Skip to content

Instantly share code, notes, and snippets.

@nickwesselman
Forked from kamsar/Performance.Dev.config
Last active September 4, 2019 15:55
Show Gist options
  • Save nickwesselman/2eed4f1f67942c3234dd93459141838e to your computer and use it in GitHub Desktop.
Save nickwesselman/2eed4f1f67942c3234dd93459141838e to your computer and use it in GitHub Desktop.
Sitecore 9.0 Dev Performance Config
<!--
A set of performance optimizations for development that vastly increase application startup time.
Should not be used in production, as they largely disable forensic diagnostics that you'd want there over fast startup time after a compile.
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<hooks>
<hook type="Sitecore.Diagnostics.HealthMonitorHook, Sitecore.Kernel">
<patch:delete />
</hook>
<hook type="Sitecore.Diagnostics.MemoryMonitorHook, Sitecore.Kernel">
<patch:delete />
</hook>
</hooks>
<pipelines>
<contentSearch.queryWarmup patch:source="Sitecore.ContentSearch.config">
<processor type="Sitecore.ContentSearch.Pipelines.QueryWarmups.RunQueries, Sitecore.ContentSearch">
<patch:delete />
</processor>
</contentSearch.queryWarmup>
<initialize>
<processor type="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel">
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.Loader.ShowHistory, Sitecore.Kernel">
<patch:delete />
</processor>
<!-- Disable speak precompilations; this increases first hit dialog load time but incrementally reduces instance startup time after a compile -->
<processor type="Sitecore.Pipelines.Initialize.PrecompileSpeakViews, Sitecore.Speak.Web">
<patch:delete />
</processor>
<processor type="Sitecore.Speak.Components.Pipelines.Initialize.PrecompileSpeakBclViews, Sitecore.Speak.Components.Web">
<patch:delete />
</processor>
<processor type="Sitecore.Pipelines.Loader.DumpConfigurationFiles, Sitecore.Kernel">
<patch:delete />
</processor>
</initialize>
</pipelines>
<settings>
<setting name="Counters.Enabled">
<!-- disable perf counters for a performance boost -->
<patch:attribute name="value">false</patch:attribute>
</setting>
</settings>
<scheduling>
<agent type="Sitecore.Tasks.CounterDumpAgent">
<patch:delete />
</agent>
<!-- get rid of log spam every 10 seconds -->
<!-- not required for Sitecore 8.1 Update-1 and later -->
<agent type="Sitecore.ListManagement.Analytics.UnlockContactListsAgent, Sitecore.ListManagement.Analytics">
<patch:attribute name="interval">00:30:00</patch:attribute>
</agent>
</scheduling>
</sitecore>
</configuration>
@squadwuschel
Copy link

short question about your naming of the gist files.

in the

Performance.Dev.config you wrote => should be used everywhere

but in the

Performance.config => A set of performance optimizations for development

is the naming of your configs inverted?

and can I use in local developent both configs?

@nickwesselman
Copy link
Author

@sqaudwuschel yeah they did get inverted somehow when I forked from the originals. I'd say both should be used in development only on 9.0

@nickwesselman
Copy link
Author

Consolidated into a single patch.

@DerDreschner
Copy link

Does this config work on Sitecore 9.1 as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment