unormal,
@unormal@mastodon.social avatar
eniko,
@eniko@peoplemaking.games avatar

@unormal for kitsune tails i built a StringCache class which memoizes calls and sticks the result in dictionaries and if the dictionaries get too full it just clears em

simple and effective

eniko,
@eniko@peoplemaking.games avatar

@unormal or if you're feeling particularly frisky you could use my unmanaged memory arenas library https://github.com/Enichan/Arenas

but you'd still get an allocation if you convert them into C# strings so tbh memoization is more effective

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