Skip to content

v0.0.4: Optimize UTF-8 `toString` performance with two-pass validation strategy

Choose a tag to compare

@iwater iwater released this 18 Dec 05:07
· 7 commits to main since this release

Optimize UTF-8 toString performance with two-pass validation strategy

Changes Made:

  • Fixed a 90% performance regression in toString("utf8") by implementing two-pass UTF-8 validation in HybridNitroBuffer.cpp
  • Added fast-path for pure ASCII/valid UTF-8 using memcpy, falling back to slow path only for invalid sequences
  • Updated benchmark data in README files to reflect latest performance