roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

WIP: Reduce SyntaxListBuilder allocations in lexer

Open ToddGrun opened this issue 2 years ago • 0 comments

Lexer.LexDirectiveTrailingTrivia was calling into AddTrivia with a null SyntaxListBuilder, causing allocations. Instead, use the existing _trailingTriviaCache member in that context.

From the non-devenv allocations Completion speedometer: image

ToddGrun avatar Feb 23 '24 16:02 ToddGrun