mcc,
@mcc@mastodon.social avatar

@unormal So here is a hypothesis

Stringbuilder has a very particular use pattern and it is ideal if it can be used without creating garbage

Therefore a plausible hypothetical optimization would be to have Stringbuilder backed by an unmanaged, VM-owned object, and to have these objects live in pools. Create a StringBuilder, it comes out of the pool, when it Finalizes it goes back in the pool. This object would probably need to be as large as it's largest allocation

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • megavids
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • JUstTest
  • lostlight
  • All magazines