You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing an incremental source generator that generates numerous types, ranging from dozens to even hundreds. The entire code is constructed using a single StringBuilder, and subsequently, the resulting string is added via SourceProductionContext.AddSource along with a specific hintName. I am wondering whether it would be beneficial to separate these types and write each with its own distinct hintName?
I'm not sure how to correctly measure the performance of the generator. I suppose if the IDE doesn't slow down, then it's considered fast 😅
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am developing an incremental source generator that generates numerous types, ranging from dozens to even hundreds. The entire code is constructed using a single StringBuilder, and subsequently, the resulting string is added via SourceProductionContext.AddSource along with a specific hintName. I am wondering whether it would be beneficial to separate these types and write each with its own distinct hintName?
I'm not sure how to correctly measure the performance of the generator. I suppose if the IDE doesn't slow down, then it's considered fast 😅
Beta Was this translation helpful? Give feedback.
All reactions