sqids-dotnet icon indicating copy to clipboard operation
sqids-dotnet copied to clipboard

Hoist property and use stack based buffer instead of StringBuilder

Open Genbox opened this issue 1 year ago • 0 comments

Pr. your request in https://github.com/sqids/sqids-dotnet/pull/29

  • Moved call to length (and creation of generic math variable) out of loop.
  • Added a stack-based buffer of 64 chars

You might want to fiddle and see if the size of the stack buffer is enough in all cases.

Genbox avatar Jan 30 '24 21:01 Genbox