FZJ-JSC / JuML

3 stars 1 forks source link

Prevent multiple disk accesses in load_equal_chunks() #26

Closed Markus-Goetz closed 8 years ago

Markus-Goetz commented 8 years ago

load_equal_chunks() of dataset should be implemented in a way, that if the function is called multiple times, a reload from disk is only initiated for the first time. This might require to stat the file on loading and check for its modification date later.

mricherzhagen commented 8 years ago

I did this in ca66e8be1c8288d5dca2582dba627fe9d720c342 with

if (this->data_.elements() > 0) return;

its also a problem, when you initiate the Dataset using the not-file-constructor.