Bug 218302 - Persistent code browser database
Summary: Persistent code browser database
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-11 17:23 UTC by Mihai
Modified: 2009-12-12 00:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai 2009-12-11 17:23:21 UTC
Version:           3.9.96 (using KDevPlatform 0.9.96) (using 4.3.3 (KDE 4.3.3), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.29-gentoo-r5


Use some sort of persistent storage for code browser database to speed up loading when opening a project (parse only changed files)

Right now code browser parses every time and i work on something like 86MB of source code which is parsed in a few minutes.

I almost never parse whole project because takes too long and if kdevelop crashes its bye bye database anyway.
Comment 1 Milian Wolff 2009-12-11 17:27:51 UTC
We already use a persistent storage. The problem is that crashes can make this storage invalid and hence it has to be cleared. The more stable kdevelop becomes, the less you'll have to reparse.
Comment 2 Vadym Krevs 2009-12-12 00:23:09 UTC
Strictly speaking, kdevelop could have used something like Berkely DB to avoid db corruption in such situations ...
Comment 3 David Nolden 2009-12-12 00:58:43 UTC
@Vadym Krevs: That doesn't make sense, given the amount of information we store in the duchain, any kind of 'stable' database storage would be horribly slow, and also complete overkill, as the information is not 'valuable' at all, it's just a cache.

Just keep reporting your crashes, then KDevelop will become more stable, and the database won't be cleared that often. Parsing performance is worked on as well.