зеркало из https://github.com/mozilla/gecko-dev.git
1628f9ba8d
In most calls to `SpliceableJSONWriter::Splice(const char*)`: - The data comes from a `ChunkedJSONWriteFunc` and is copied to a new buffer, which is then copied again through `Write()`. Instead we can copy the data directly from the `ChunkedJSONWriteFunc`; and this is a nice complement to `TakeAndSplice()` below. - Or the length is already known, so we can pass it to a new `Splice(const char*, size_t)`, which forwards it to `Write(const char*, size_t)`, saving one `strlen` call. Differential Revision: https://phabricator.services.mozilla.com/D87703 |
||
---|---|---|
.. | ||
core | ||
gecko | ||
lul | ||
public | ||
rust-helper | ||
tasktracer | ||
tests | ||
moz.build |