gama-platform / gama

Main repository for developing the 2024+ versions of GAMA
https://gama-platform.org
GNU General Public License v3.0
11 stars 4 forks source link

Add a cached File object in BufferingController for each file #219

Open lesquoyb opened 3 weeks ago

lesquoyb commented 3 weeks ago

Is your request related to a problem? Please describe. I'm not sure if it's a good idea or not, but worth trying. Currently, even with a buffering strategy set, we create multiple times a File object for each actual file in the system. I don't know if it costs much or not but we could try to take advantage of the BufferingController to cache those File object and access them from this class. It could also be used later as a lock if we want to parallelize file writing.