vs-sourcetrail icon indicating copy to clipboard operation
vs-sourcetrail copied to clipboard

for large solution, the speed of generating compile_commands.json is very very slow

Open paopaol opened this issue 5 years ago • 3 comments

is there any way to speed up it?

paopaol avatar Apr 26 '19 13:04 paopaol

I don't know the current bottleneck of generating the compilation database. For reference, can you tell us

  • the file size of the json file you generated and
  • the time it took to generate the file?

mlangkabel avatar Apr 26 '19 16:04 mlangkabel

the size of compile_commands.json is 574k. and the solution has 36 projects. it tooks 100s, and the cpu of visual studio 2015 is 45%.my cpu is i5-8250. A total of 288 source files

paopaol avatar Apr 27 '19 10:04 paopaol

Same issue here, started pretty fast but then slowed more and more to the point where each project would take several seconds, some taking maybe 5 but some others could stall for up to a full minute. My solution is huge (around 50 projects), although some of them are C# and hence skipped..

This is Visual Studio Professional v15.7.6.

n00bmind avatar May 17 '19 16:05 n00bmind