Follow-up from "Improve performance of writing live trace chunks"
The following discussion from !37075 (merged) should be addressed:
-
@ayufan started a discussion: I think we could optimise a number of requests to do something like this:
@size ||= @data&.bytesize || current_store.size(self) || data&.bytesize
Effectively:
- try cached data
- use efficient size
- read data and get size
Edited by Grzegorz Bizon