Parsed syntax cache save location
Milian Wolff
mail at milianw.de
Thu Apr 23 13:20:14 BST 2015
On Thursday 23 April 2015 00:53:17 Aleksey Midenkov wrote:
> On Wed, Apr 22, 2015 at 2:24 PM, Aleix Pol <aleixpol at kde.org> wrote:
> > On Wed, Apr 22, 2015 at 11:57 AM, Aleksey Midenkov <midenok at gmail.com>
wrote:
> >> Where KDevelop stores cache of parsed sources? Why it doesn't store it
> >> in project location (.kdev4)? I noticed that it reparses project after
> >> some time passed which makes me believe that it does cache aging.
> >> Anyway, the best choice is to store cache into .kdev4 with infinite
> >> lifetime, because: 1. parsing of long project takes about an hour and
> >> 2. there is no need to keep cache of deleted projects. Is it possible
> >> to set this in configuration?
> >> _______________________________________________
> >> KDevelop mailing list
> >> KDevelop at kde.org
> >> https://mail.kde.org/mailman/listinfo/kdevelop
> >
> > It's stored in ~/.cache/kdevduchain/ by default, or whatever XDG cache
> > directory is specified.
> >
> > You don't want to have it in project/.kdev4/* because:
> > - It's not a per-project cache, but per-session.
> > - many people use distributed file systems, if it's not with the
> > cache, the system struggles to keep updating the cache through the
> > network and the experience is terrible.
> >
> > Aleix
>
> So, if project is closed in session, it's cache is deleted? That's
> another problem because multiple 200Mb-code projects don't fit into
> one session. So I forced to create new session for each new project.
> It is good to turn off 'session' concept in this case. And keep cache
> with the project.
Afaik the cleanup of the cached data when files get deleted or projects closed
is far from optimal currently. Keeping the cache with the project cannot be
done as the same project could be opened in multiple sessions (and no, the
cache is not multi-process safe).
I fear, for now, you'll have to live with the current situation. But what do
you mean by "multiple 200Mb-code projects don't fit into one session"? Is your
hard disk too small to hold the cache? Having the projects in multiple session
won't change much in that regard.
Bye
--
Milian Wolff
mail at milianw.de
http://milianw.de
More information about the KDevelop
mailing list