Yarn: Don't zero-initialize data in Pool<T>::Item::construct()
TIL: For POD type T, `new T` and `new T()` are not the same.
new T() will zero initialize, which for large arrays can be very costly.
Bug: b/139142453
Change-Id: I9a1a3ef1bb0a167d9955310d1cf331e917019397
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/35569
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by:
Chris Forbes <chrisforbes@google.com>
Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
Tested-by:
Ben Clayton <bclayton@google.com>
Showing
Please
register
or
sign in
to comment