imglib / imglib2-cache

Cache interfaces and java.lang.ref based implementation.
Other
6 stars 4 forks source link

Revise CacheIoTiming #21

Open tpietzsch opened 1 year ago

tpietzsch commented 1 year ago

At the moment, if multiple threads wait for data at the same time, the cumulative time is subtracted from the IoTimeBudget. It would be better to not double-count overlaps. This probably requires a tighter coupling of IoTimeBudget and IoStatistics. Then also IoTimeBudget.timeLeft() could give a more accurate estimate by accounting for "in-progress" waits.