This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
string_bytes: use extern for length and write utf8
If the string is external then the length can be quickly retrieved. This is especially faster for large strings that are being treated as UTF8. Also, if the string is external then there's no need for a full String::WriteUtf8 operation. A simple memcpy will do.
- Loading branch information