Skip to content

Commit f0fd4ef

Browse files
Update performance-best-practices.md (dotnet#16163)
* Update performance-best-practices.md * Update performance-best-practices.md
1 parent 5f1687a commit f0fd4ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aspnetcore/performance/performance-best-practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A common performance problem in ASP.NET Core apps is blocking calls that could b
3737
**Do**:
3838

3939
* Make [hot code paths](#understand-hot-code-paths) asynchronous.
40-
* Call data access and long-running operations APIs asynchronously if an asynchronous API is available. Once again, do not use [Task.Run](/dotnet/api/system.threading.tasks.task.run) to make a synchronus API asynchronous.
40+
* Call data access, I/O, and long-running operations APIs asynchronously if an asynchronous API is available. Do **not** use [Task.Run](/dotnet/api/system.threading.tasks.task.run) to make a synchronus API asynchronous.
4141
* Make controller/Razor Page actions asynchronous. The entire call stack is asynchronous in order to benefit from [async/await](/dotnet/csharp/programming-guide/concepts/async/) patterns.
4242

4343
A profiler, such as [PerfView](https://github.com/Microsoft/perfview), can be used to find threads frequently added to the [Thread Pool](/windows/desktop/procthread/thread-pools). The `Microsoft-Windows-DotNETRuntime/ThreadPoolWorkerThread/Start` event indicates a thread added to the thread pool. <!-- For more information, see [async guidance docs](TBD-Link_To_Davifowl_Doc) -->
@@ -60,7 +60,7 @@ Memory issues, such as the preceding, can be diagnosed by reviewing garbage coll
6060

6161
For more information, see [Garbage Collection and Performance](/dotnet/standard/garbage-collection/performance).
6262

63-
## Optimize Data Access
63+
## Optimize data access and I/O
6464

6565
Interactions with a data store and other remote services are often the slowest parts of an ASP.NET Core app. Reading and writing data efficiently is critical for good performance.
6666

0 commit comments

Comments
 (0)