Skip to content

Issue for Memory (A lot of CPU or Memory is being spent in `IEnumerable<T>.ToL...) #34

Description

@jkalis-MS

Description: A lot of CPU or Memory is being spent in IEnumerable<T>.ToList().

Current condition: 65% of your Memory was spent in Enumerable.ToList called from Store.Reviews.ReviewValidation.StringValidation. We expected this value to be <13%.

Recommendations: Consider using List<T> from the start to avoid expensive calls to ToList(). Also, verify that IEnumerable<T>.ToList() isn't being...

Call Stack:

Type System.String
system.private.corelib.il!System.String.Ctor(value class System.ReadOnlySpan1<wchar>) store!ReviewHelper.<LoadDisallowedWords>g__DeserializeLocalizedTerm|0_0() store!ReviewHelper+<LoadDisallowedWords>d__0.MoveNext() system.linq.il!System.Linq.Enumerable+WhereSelectEnumerableIterator2[System.__Canon,System.__Canon].ToList()
system.linq.il!System.Linq.Enumerable.ToList(class System.Collections.Generic.IEnumerable1<!!0>) store!Store.Reviews.ReviewValidation.StringValidation(class System.String,wchar,class System.Globalization.CultureInfo) store!Store.Reviews.BackgroundReviewValidation+<ExecuteAsync>d__0.MoveNext() system.private.corelib.il!System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineB

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions