Discussion:
[Development] clangbackend qtcreator 4.2 memory hogging
kang joni
2016-10-26 09:57:55 UTC
Permalink
I have small project in which contains 2k SLOC with heavy v8 js
template included in source file.
For small opening 3-4 sources file this take almost 870mb in memory
with no precompiled header being checked plus qtcreator eats 280mb
with 2gb Intel celeron and this is definitely not desirable for me. I
have feature request whether is this possible to put heavy c++ symbol
data in sqlite file with multithread concurrent access mechanism
instead to keep clangbackend memory usage being low?
Marco Bubke
2016-10-26 10:08:27 UTC
Permalink
If c++ modules becomes supported it could go down but actually you should request that in the clang mailling list. We open a translation unit for every file and they are that big. We research precompiled header to improve speed and maybe they provide advantages in memory usage too.

________________________________
From: Development <development-bounces+marco.bubke=***@qt-project.org> on behalf of kang joni <***@gmail.com>
Sent: Wednesday, October 26, 2016 11:57:55 AM
To: ***@qt-project.org
Subject: [Development] clangbackend qtcreator 4.2 memory hogging

I have small project in which contains 2k SLOC with heavy v8 js
template included in source file.
For small opening 3-4 sources file this take almost 870mb in memory
with no precompiled header being checked plus qtcreator eats 280mb
with 2gb Intel celeron and this is definitely not desirable for me. I
have feature request whether is this possible to put heavy c++ symbol
data in sqlite file with multithread concurrent access mechanism
instead to keep clangbackend memory usage being low?
kang joni
2016-10-26 10:35:49 UTC
Permalink
so I'm now just thinking the possibility to pack list of clang symbol
internal chunk of class to be serialized into qdatastream binary and
send it over sqlite column. But this is just my dummy thought. Could
you please possibly integrate this project
http://rprichard.github.io/sourceweb/ into qtcreator as well. I had
succeed with it readonly indexing my production project at 60k SLOC
and the whole nodejs project source tree with it's dependency project
like openssl, v8 js ,libuv etc...
@Marco Bubke what do you think, they have friendly BSD license mainly btw?
Post by Marco Bubke
If c++ modules becomes supported it could go down but actually you should
request that in the clang mailling list. We open a translation unit for
every file and they are that big. We research precompiled header to improve
speed and maybe they provide advantages in memory usage too.
________________________________
Sent: Wednesday, October 26, 2016 11:57:55 AM
Subject: [Development] clangbackend qtcreator 4.2 memory hogging
I have small project in which contains 2k SLOC with heavy v8 js
template included in source file.
For small opening 3-4 sources file this take almost 870mb in memory
with no precompiled header being checked plus qtcreator eats 280mb
with 2gb Intel celeron and this is definitely not desirable for me. I
have feature request whether is this possible to put heavy c++ symbol
data in sqlite file with multithread concurrent access mechanism
instead to keep clangbackend memory usage being low?
_______________________________________________
Development mailing list
http://lists.qt-project.org/mailman/listinfo/development
Loading...