Re: KDevelop 5 too slow?

Sven Brauch <mail-ITmcY+a7/[email protected]>
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <[email protected]>
On 03/05/17 09:36, René J.V. Bertin wrote:
> On Wednesday May 03 2017 00:38:10 Sven Brauch wrote:
>> On 03/05/17 00:19, René J. V. Bertin wrote:
>>> Isn't that because of the unknown declaration fixer thingy which 
>>> has a knack of scanning and rescanning a potentially huge number 
>>> of include files, on the main/gui thread?
>> No, different issue, this one is in the parse jobs.
> 
> I presume that the parser also scans through headerfiles so the 
> underlying reason could well be the same.

I don't think so. Kevin and me investigated this problem a bit at the
last sprint. The general issue is roughly, while the parser is running,
no new completion items can be generated; this is why we introduced the
long delay when typing on a single line intentionally (it shouldn't
start running the background parser while you're still typing in a
single line and need completion).

My memory tells me that we also timed what takes so long, and it's
clang generating the completion items, i.e. not in our code. It's just
sometimes very slow and nobody could figure out why yet. I feel like
some code cache (precompiled header cache?) is dropped under some
circumstances which happen on some projects erraneously, but not on
others. Maybe strange paths (non-normalized, ...) have something to do
with it, but that's just guesswork now.

Further investigations are very welcome, but I think one needs to sit
down with a debugger/profiler and a build of llvm with symbols and
figure out what happens. Guessing around on the mailing list won't find
it IMO.

Greetings,
Sven
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEESmKXmTK7vOXjlWrPaMqOOMS7P0sFAlkKPXkACgkQaMqOOMS7
P0tJAA//a4qqQqOxg3UbV/FMmpfzGTKUubBVmAKNR6uBYjjWJ/q69cZRcbfW6fC7
qJo5LOAufyhPU2aUfeKxTf4s+q16R8eTRM+ElgyRN/u+mLXKVeVncf3gAHerbzqe
M7Oz6X63DDQn5HZOMeV5Vmo7lbynDl8WjWzTWqd8xgHQmTVZbtOsUDlNZAN7Z6wt
nXb9nOzJDlYMZk7Uik1BzZEzcZ7qBcOLOQb6PIIYBWTArfxMNJ/ltRGuwE5ihg5n
XYrIbj0IPUgr9WnBGoF4hoZ6pM6YKIVjUdhe8QUhyDdBLMivEF5DpZ9j7M3k1i7Z
6d3Q/MEXM7y4NtF1YV1SxnTLiNr6tvWqKY3X1Vv33P3qJiXtIWkdIlTr6oLrxJhv
JNkddk/izoFRR7UNK8iRu1qAkIpqB7SF8Xz9LpwsbiD5kFmzcmR/EpCgkve+ivV0
utooPLvQAW/J+tXi4U4Gap9+WynkkU3N5JKuIZDibR+SzWORbJ+QeOyLnwu68I+K
nwTHKm5cV4ZreUAtDRs9OMFnSIx2QQrTNnKJNix27J0zEo7hvLFgE9DWJpYHUNEh
NoI5YmxgiqwcCVfpWHNEg1eurKzxONZZgaXuGinZOA3FZt/xGF0jS3J49I0HXeLg
Xc/0oPJ9vkuvbOLkanfQPes8ESOl9swYVimu9W7jZ/Sz8ij/6EQ=
=PvfJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.