Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce LOH allocations for SemanticToken classification in LSP (#69496)
* Reduce LOH allocations for SemanticToken classification in LSP LSP semantic classification classifies the whole document per call. This ends up with a large number of classifiedspans per call, enough so that the standard ArrayBuilder cache ends up throwing away it's values upon Free. Instead, use the Classifier's pooled list, as it doesn't have the size limit for it's cache. This accounts for about 0.5% of LOH allocations in the devenv process in the customer profile that I'm looking at. * Remove accidental remnants of earlier attempt I made locally and didn't fullly revert.
- Loading branch information