Commit 35aecd0
committed
BUG: Remove m_UseOoc gate from Preferences::forceOocData getter and setter
The force_ooc_data preference is intended as an independent user toggle
that overrides the "in-memory format" choice — "force every eligible
array to OOC regardless of the selected large-data format." But both the
getter and setter were gated on m_UseOoc, which is only true when the
selected format is something other than the in-memory sentinel.
Effect of the bug: when the user's large-data format was
'Simplnx-Default-In-Memory' (the default), toggling Force OOC in the
Preferences dialog had zero effect. The setter silently dropped the new
value (because the gate returned early), and even if the key had been
persisted in a prior session, the getter would always return false.
The OocDataIOManager format resolver already handles the
(forceOoc=true, userChoseInMemory=true) case correctly — it returns
'HDF5-OOC' for every eligible array. The upstream gate in the
preference class prevented that design from ever being reached.
Removing the gate in both the getter and setter lets the toggle work
as designed: when Force OOC is on, the format resolver routes every
eligible array to OOC storage even if the user's format preference
still says in-memory.
Discovered while debugging a 6-second drag-drop-to-outline latency on
a 25 GB dataset — the user had Force OOC on and the 2 GB large-data
threshold set, but arrays were still being eagerly loaded into RAM.
The root cause was this preference gate silently defeating the user's
choice.
Signed-off-by: Joey Kleingers <joey.kleingers@bluequartz.net>1 parent 7d2ca70 commit 35aecd0
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
339 | 342 | | |
340 | 343 | | |
341 | 344 | | |
| |||
0 commit comments