Perf: Logging infra allocates even when no logging enabled. #11331
Labels
area-perf
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
ILogger
hasIsEnabled
, which should normally be used to avoid doing logging work (building log messages etc.) when logging is disabled.However, while profiling, I noticed that our logging infra. still seems to do the work, even when logging is disabled. One example is
RelationalLoggerExtensions.CommandExecuted
, which will allocate a string, a delegate, and several enumerators for each query execution.The text was updated successfully, but these errors were encountered: