2019.04.24 17:10 "Re: [Tiff] TIFFWriteScanLine - buffers to RAM before flushing to disc?", by Paavo Helde
On 24.04.2019 16:58, Paul Hemmer wrote:
How are you observing/measuring this memory growth?
Windows Task Manager
Windows Task Manager only shows how much memory the memory manager inside the process has asked from the OS. The memory manager asks memory only in big chunks (1MB or more) and typically does not return it to OS immediately when it is free()-d, but only sometimes later, based on its intricate logic which tends to get more complex all the time. Moreover, if there is some fragmentation or some small memory leaks, then it might not be able to return some blocks for a long time or at all.
In short, this topic is anything else than trivial, and by monitoring the process only by the task manager you cannot easily tell if you see the behavior of libtiff itself, the memory manager, or something else.