[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: Patch: wake up duchainlock writers
From: David Nolden <zwabel () googlemail ! com>
Date: 2009-12-14 19:50:21
Message-ID: 200912142050.21177.zwabel () googlemail ! com
[Download RAW message or body]
Ok I've tried out the patch a bit, and this patch indeed makes the multi-cpu
usage better. It somewhat reduces the 'elapsed time' of parsing a project.
However it also increases the 'user time', which means that all in all, the
effort is higher. I cannot tell exactly what the reason of this is, but
probably QWaitCondition is just less efficient than a waiting loop.
Due to the central nature of the duchain lock, I'm actually thinking of
replacing all the mutexes in there with spin-locks, using QAtomicInt instead
of all the mutexes and wait conditions, to make the whole thing more
efficient.
Greetings, David
--
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