Classic slows down and does not unload the DDR Memory
I have observed an annoying bug, or maybe I should rather call it an annoying way Lightroom Classic CC seems to handle System Memory (DDR), and was wondering, if anybody has a similar issue or a workaround.
My issue is the following: Every time, I use a function in lightroom for the first time in a session (so every first time after opening the program and starting to work on pictures, not first time ever) Lightrooms DDR demand is increased, resulting in Lightroom constantly loading new data into the system memory. Thats fine, BUT Lightroom never seems to purge the Data from the DDR, even after an operation is done and no longer requires active resources. This leads to annoying slow downs. I've seen this behaviour on both my Windows desktop (Ryzen 5600x, 32GB DDR4 3200 RAM, RTX2070, 2x 1TB NVME Samsung 980) as well as my MacBook Pro (14inch, M1 Pro, 16gb Ram)
Let me give you an example how this looks on my Windows machine:
I open up Lightroom and navigate to the Develop Module. RAM usage at this point sits an around 2,4 GB.

Now I start editing a couple of Photos. Ram usage immediately shoots up to around 6.1 GB and stays there, even after around 20 edits of 33 mp photos.

Next up, I want to merge photos into a panorama or use the "enhance detail" function, mainly to improve drone shots from my mini 3 pro. (so 12 mp raws). After having done bot, the RAM usage now sits at almost 13GB.Also Lightroom noticeably slows down, even though there is more then enough RAM left, both physical and virtual.

The weird part to me is, that unless you restart lightroom, that RAM usage never ever goes back down again. Even though my Panorama is finished, my Photo is enhanced and i'm back in the library trying to sort my photos. I don't get, why Lightroom need to keep Data in the System Memory, that is, based upon usage during normal edits, not needed in order for it to work just fine. I've optimized my catalouge, tried a different or new catalogue and reinstalled lightroom, all to no avail.
My RAW Cache sits on a state of the art PCI Express NVME and is set to 50GB, I disabled Video Cache and like I said, I've seen this on both my Windows as well as my Mac.

So, bottom line: My current workaround is, to restart Lightroom every time the memory fill-up is starting to cause issues (especially after every panorama or enhance detail) but that can't be the indented behaviour of Lightroom Classic. So, does anybody have an Idea what the cause of this could be or whether it's being fixed with a future update?
