AlexeyDmitriev / JHelper

GNU Lesser General Public License v3.0
119 stars 31 forks source link

Speed of compiling #98

Closed emli closed 5 years ago

emli commented 5 years ago

Sometimes it's too slow speed of compilation. How to solve this problem? I tried Power Save Mode but it didn't help well

AlexeyDmitriev commented 5 years ago

Well, Power Safe Mode is probably would only make it worse.

Is compilation slow for you only with JHelper? What if you compile target testrunner directly inside or outside an IDE? (make testrunner in cmake-build-debug directory).

emli commented 5 years ago

Is compilation slow for you only with JHelper?

I think yes, I used clion without jhelper - it was working pretty good.

What if you compile target testrunner directly inside or outside an IDE? (make testrunner in cmake-build-debug directory).

It's also litte slow

AlexeyDmitriev commented 5 years ago

It's also litte slow Well, if it is also slow, then probably it is the property of code (generated) and/or compiler, not the tool itself.

It's hard to say without measurement/seeing actual code, what exactly is different. Maybe, for example code is just bigger/has more unnecessary includes or smth. Maybe, you use different compiler or compiler options?

Can you find code that seems to compile fast enough to you and code that compiles slowly, check how much is the difference. If you don't find where the difference is (e.g by trying to compile code from JHelper in usual project and vice versa and measuring that), I can try to take a look (and check how big the difference is on my machine)

emli commented 5 years ago

image

emli commented 5 years ago

https://github.com/emli/competitive/blob/master/tasks/cf/CDivideByThree.cpp

Here you can see some codes