tools icon indicating copy to clipboard operation
tools copied to clipboard

rdmd should limit its tmp cache

Open dlang-bugzilla-migration opened this issue 4 years ago • 0 comments

Transferred from: https://issues.dlang.org/show_bug.cgi?id=11405

User @MartinNowak reported (2013-Oct-31 16:28:42):

Old discussion but still a valid issue. http://forum.dlang.org/thread/[email protected] Rdmd needs a reasonable policy to evict old cached folders. A simple solution would be to delete an existing folder with the same first 2-3 bytes of the digest. This means we'd have to lock the folders to synchronize different rdmd processes.

User @AndrejMitrovic responded (2014-Apr-26 19:31:14):

(In reply to Martin Nowak from comment #0)

A simple solution would be to delete an existing folder with the same first 2-3 bytes of the digest. This means we'd have to lock the folders to synchronize different rdmd processes.

I'd hate to make RDMD more complicated, but one idea is to make RDMD read its own config file just like DMD reads its .conf file, and then make this stuff configurable.

User @bearophile responded (2014-Apr-26 19:43:05):

Renamed issue it's => its, hopefully for the better.

User @CyberShadow responded (2017-Jul-08 01:53:45):

With /tmp being a tmpfs on many distros today, and Windows' disk cleanup utility knowing about and deleting the %TEMP% directory on request or when the disk gets full, this may not be as much of an issue nowadays, though still may be worth fixing.