On Mon, 19 Jan 2009 06:37:47 -0800, Aaron_Sher@adobeforums.com wrote:
Not knowing the details, and being in a speculative frame of mind at the
moment, here goes.
Photoshop does tend to hold on to memory, even after images are closed. I
imagine that allocated memory tiles are not associated with a specific
image, but rather to a pool of tiles that are shared among open, or
potentially open images.
Since tiles have a relatively fine granularity, compared to open blocks,
the developers of Photoshop (feel free to chime in here, Chris) did not see
much leverage in fragmenting memory space by deallocating individual tiles,
or moving tiles around, once allocated. Larger blocks of unused tiles will
be swapped out by system VM in any case.
> About the scond question, unfortunately there is no way of getting
> Photoshop to return the size of the largest contiguous block of memory."
In Windows, and probably Mac as well, you can use system calls to march
through the process's allocated memory space.