D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11405 - rdmd should limit its tmp cache
Summary: rdmd should limit its tmp cache
Status: RESOLVED MOVED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 16:28 UTC by Martin Nowak
Modified: 2020-06-05 12:25 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2013-10-31 16:28:42 UTC
Old discussion but still a valid issue.
http://forum.dlang.org/thread/gomtj5$1iut$1@digitalmars.com
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.
Comment 1 Andrej Mitrovic 2014-04-26 19:31:14 UTC
(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.
Comment 2 bearophile_hugs 2014-04-26 19:43:05 UTC
Renamed issue it's => its, hopefully for the better.
Comment 3 Vladimir Panteleev 2017-07-08 01:53:45 UTC
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.
Comment 4 Mathias LANG 2020-06-05 12:25:13 UTC
Issue transferred to: https://github.com/dlang/tools/issues/412