Remove pre-fetch step in measurement exporter by alanocallaghan · Pull Request #2069 · qupath/qupath

petebankhead

alanocallaghan

@alanocallaghan alanocallaghan changed the title Towards a less memory-hungry measurement exporter Remove pre-fetch step in measurement exporter

Jan 19, 2026

@alanocallaghan

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).

petebankhead

@alanocallaghan

alanocallaghan

@alanocallaghan

@alanocallaghan

petebankhead

petebankhead