TranslationSyntaxReference allocations were showing up in typing scenario...
TranslationSyntaxReference allocations were showing up in typing scenario profiles (3.7% for C# and 1% for VB). Fixes applied to both C# and VB: 1) Move the TranslationalSyntaxReference class down into the common layer and reduce its size by one field. Instead of storing the delegate, it's now an abstract base class. Implementations supply the "translate" method. 2) Size the ArrayBuilder instance exactly to avoid wastage. (changeset 1215193)
Showing
想要评论请 注册 或 登录