wasyl
11/05/2019, 6:48 AMSystem.gc()
to trigger gc and Runtime.getRuntime().run { totalMemory() - freeMemory() }
to calculate free memory. I’d imagine with non-buffered 5MB content and buffered 5MB content it’d be possible to figure out a deterministic threshold