roslyn
roslyn copied to clipboard
WIP: Reduce SyntaxListBuilder allocations in lexer
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: