You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/performance/performance-best-practices.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ author: mjrousos
4
4
description: Tips for increasing performance in ASP.NET Core apps and avoiding common performance problems.
5
5
monikerRange: '>= aspnetcore-2.1'
6
6
ms.author: riande
7
-
ms.date: 12/05/2019
7
+
ms.date: 04/06/2020
8
8
no-loc: [SignalR]
9
9
uid: performance/performance-best-practices
10
10
---
@@ -95,7 +95,7 @@ Recommendations:
95
95
96
96
## Keep common code paths fast
97
97
98
-
You want all of your code to be fast, frequently called code paths are the most critical to optimize:
98
+
You want all of your code to be fast. Frequently-called code paths are the most critical to optimize. These include:
99
99
100
100
* Middleware components in the app's request processing pipeline, especially middleware run early in the pipeline. These components have a large impact on performance.
101
101
* Code that's executed for every request or multiple times per request. For example, custom logging, authorization handlers, or initialization of transient services.
@@ -231,7 +231,7 @@ ASP.NET Core 3.0 uses <xref:System.Text.Json> by default for JSON serialization.
231
231
232
232
The [IHttpContextAccessor.HttpContext](xref:Microsoft.AspNetCore.Http.IHttpContextAccessor.HttpContext) returns the `HttpContext` of the active request when accessed from the request thread. The `IHttpContextAccessor.HttpContext` should **not** be stored in a field or variable.
233
233
234
-
**Do not do this:** The following example stores the `HttpContext` in a field, and then attempts to use it later.
234
+
**Do not do this:** The following example stores the `HttpContext` in a field and then attempts to use it later.
0 commit comments