spimort / TerraBrush

MIT License
645 stars 23 forks source link

Cache StringNames #90

Closed Joy-less closed 4 months ago

Joy-less commented 4 months ago

This PR solves a potential issue where implicitly converting strings to StringNames leads to garbage collection spikes. (Reddit / Docs) I've cached all the StringNames I could find in a static class.

spimort commented 4 months ago

Alright, sounds good to me 🙂! Thanks for bringing this up.

I increased the version in the PR!