Closed anri-asaturov closed 4 years ago
Does it make sense to reuse Pbf instance for writing? pbf.finish().slice() to get a copy of the result to avoid race condition and reset pos/length?
pbf.finish().slice()
It probably makes sense, although the difference might not be significant. You can always benchmark for your use case though!
Does it make sense to reuse Pbf instance for writing?
pbf.finish().slice()
to get a copy of the result to avoid race condition and reset pos/length?