bsc-quantic / dirB

An I/O HDF5-based utility to assist in the distribution, execution and integration of mathematical optimization models results coming from different sources.
Apache License 2.0
1 stars 0 forks source link

Speed improvement keeping files open #2

Open HerManNav opened 1 year ago

HerManNav commented 1 year ago

A posible improvement for performance could consist of keeping the file open until the user called a specific method to close the file when all the modifications have been performed. This method SHOULD be called also in the destructor of the dirB instance!

The main drawback of this approach is that the file wouldn't be accessible by other applicactions while the instance of the dirB lasted.

A third approach is to let the user select between these 2 modes (performance vs accessibility modes).