- From: Adam Rice <notifications@github.com>
- Date: Tue, 06 Nov 2018 04:48:45 -0800
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 6 November 2018 12:49:07 UTC
> Do we need to care about the characteristics of the substring operation on the C++ side of WebIDL? It seems to me the side that matters here is the JS side. Yes, I had misunderstood the situation. The string is copied when accessed by Blink, and the original V8 string is left untouched. So any substring optimisation that V8 performs will still work. I don't know the details, but it appears that V8 will do zero-copy substrings in at least some situations. So the only overhead we have to worry about is GC. As such, maybe a StringView interface is overkill. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/encoding/issues/69#issuecomment-436240902
Received on Tuesday, 6 November 2018 12:49:07 UTC