UnitySDK icon indicating copy to clipboard operation
UnitySDK copied to clipboard

Cached StringBuilder in thread-static manner for use with GetFullUrl.

Open h-sigma opened this issue 3 years ago • 0 comments

The SDK is unnecessarily allocating 2kb of garbage every API call for a simple URL building operation. Replaced the allocation of a new StringBuilder each time with a ThreadStatic cached string builder.

h-sigma avatar Oct 11 '22 15:10 h-sigma