Closed ansman closed 5 years ago
Using lazy create an extra field, requires synchronization and causes primitives to be boxed. It shouldn't used if the operation is O(1) and doesn't require a lot of allocations.
lazy
O(1)
Using
lazy
create an extra field, requires synchronization and causes primitives to be boxed. It shouldn't used if the operation isO(1)
and doesn't require a lot of allocations.