Remove pre-fetch step in measurement exporter by alanocallaghan · Pull Request #2069 · qupath/qupath
alanocallaghan
changed the title
Towards a less memory-hungry measurement exporter
Remove pre-fetch step in measurement exporter
Attempts to avoid the pre-fetch step when building by only pre-allocating the measurement tables and not all of the strings. Therefore writing the table will take longer, but without the costly pre-fetch step. In theory writing could be parallelized for some formats also. This should also move file creation closer to writing, which should help avoid the situation possible at the moment where we overwrite a file and then crash before writing a single byte to it without throwing an exception (if createMeasurementTable fails).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters