wilzbach / tools-test

1 stars 0 forks source link

rdmd should limit its tmp cache #95

Open wilzbach opened 10 years ago

wilzbach commented 10 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#11405 From: Martin Nowak <code@dawg.eu> Reported version: D2 CC: andrej.mitrovich@gmail.com, bearophile_hugs@eml.cc

wilzbach commented 10 years ago

Comment author: Martin Nowak <code@dawg.eu>

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.

wilzbach commented 10 years ago

Comment author: Andrej Mitrovic <andrej.mitrovich@gmail.com>

(In reply to Martin Nowak from comment BZ#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.

wilzbach commented 10 years ago

Comment author: bearophile_hugs@eml.cc

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

wilzbach commented 7 years ago

Comment author: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net>

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.