[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 215968] Scheduled reparsing of all project files is too slow
From: Milian Wolff <mail () milianw ! de>
Date: 2011-09-09 16:05:31
Message-ID: E1R23a7-0005pV-IS () bugs ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=215968
--- Comment #47 from Milian Wolff <mail milianw de> 2011-09-09 16:05:31 ---
Git commit acabbf5b22030266968bb60a3ae50109c92c00f6 by Milian Wolff.
Committed on 09/09/2011 at 18:02.
Pushed by mwolff into branch 'master'.
optimize: implement hash-based lookup for itemsForUrl
When loading big projects with lots of files, much time was spent in
Project::itemsForUrl (up to a minute in total in one of my tests).
Now we use a QHash<uint, ProjectBaseItem*> lookup table, which brings
down the total time to a mere fraction of a second.
The lookup table is saved in the ProjectModel and is updated on demand
from the ProjectBaseItem.
Introduces a new ProjectModel::itemsForUrl which will return all files
for a url without filtering by project.
CCBUG: 215968
M +5 -0 language/duchain/indexedstring.cpp
M +1 -0 language/duchain/indexedstring.h
M +40 -1 project/projectmodel.cpp
M +4 -0 project/projectmodel.h
M +15 -6 shell/project.cpp
http://commits.kde.org/kdevplatform/acabbf5b22030266968bb60a3ae50109c92c00f6
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic