Design Doc: v8::String::WriteUtf8() without flattening

66 views
Skip to first unread message

Caitlin Potter

unread,
Dec 13, 2023, 11:36:57 AM12/13/23
to v8-dev
I've shared this on Slack already, hoping to get a few more eyes on it via v8-dev. https://docs.google.com/document/d/1jn6KFlrnfGwI1f7eLS7QQ7STzN58voONCk4TuCMt7es/edit?usp=sharing

The primary goal here is to enable the option to read or process string contents safely in embedder functions which take advantage of the FastApiCall mechanism, without modifying the v8 heap (which would be unsafe for such functions, but is not explicitly restricted, currently).

Please take a look at your leisure.

Ben Noordhuis

unread,
Dec 14, 2023, 2:55:09 AM12/14/23
to v8-...@googlegroups.com
Embedder data point: String::Flatten() comes up frequently in Node.js
performance profiles so this would be a welcome change (assuming it's
faster, which, for many inputs, I expect it will be.)
Reply all
Reply to author
Forward
0 new messages