[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    deleting DUChain cache dir together with session dir
From:       Milian Wolff <mail () milianw ! de>
Date:       2011-07-21 23:22:53
Message-ID: 201107220122.56314.mail () milianw ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hey all,

currently, when a session is deleted, the corresponding DUChain cache dir will 
not be deleted. This can lead to massif wastes of disk space (~8GB for me) 
over time. Esp. paired with anonymous, temporary sessions in debugging, unit 
tests, etc. this number grows fast.

So - how should we fix this? I doubt any of the easy ways will work due to 
destruction order issues etc...

a) delete duchain cache dir from the session deletion code?
b) some signal in session/isession when a session is marked temporary 
(temporaryChanged()) and save that in duchain. on shutdown,look at last value 
and delete dir if session was last seen as temporary
c) introduce some analogon to DUChain::initialize() and call that where 
appropriate so it can check whether to delete + shutdown or not
d) ... your ideas?

hope to get this sorted out, thanks
-- 
Milian Wolff
mail@milianw.de
http://milianw.de

["signature.asc" (application/pgp-signature)]

-- 
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic