Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use an optimal way to get the UTF8 length #1369
We currently use NSString.lengthOfBytes(using:) to calculate the length of the UTF8 bytes. A flamegraph analysis of Kitura against a simple HelloWorld benchmark proves this to be sub-optimal. Using the
left a comment
It is indeed faster... although I only measured around 3% (with Kitura-net on Linux).
I was disappointed that replacing all this with