Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have this big C++ boostified project that takes ages to build so i'm trying to set up compilation firewalls. Now I could sprinkle pimpls or pure interfaces following my intuition but that doesn't seem very efficient... usually if i wanted to optimize a piece of code, I would run it through a profiler to see the bottlenecks which leads me to the following question: how do I see where are the bottlenecks in my compilation time?
All answers including trying alternate compilers are welcomed since code is cross-platform (crosses fingers!)
Thanks,
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 months ago.
Improve this question
I couldn't find an answer to this one. Assuming optimization does not break the code, why is -O3 or -O2 optimization not the default in C/C++? Why should we explicitly pass this flag? I cannot think of any situation where you would want your code to be not optimized.
I really don't understand why is this question closed and how it's opinion based.
Increasing the level of optimization increases the compilation time because the compiler has to do more work to optimize your code. It also makes debugging more difficult.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Are there guidelines to estimate beforehand which solver should be used for a mathematical optimization project?
Specifically this leads me to the following sub-questions:
How do performance benchmarks translate to probable or even possible optimization-performance-limits - specifically I mean maximum variable numbers for LPs and MILPs? (I am very much aware that this depends on the optimization problem, but there could to be a number(-range) from personal experience. The benchmark I am referring to is by H. Mittelmann: http://plato.asu.edu/ftp/milpc.html.)
Is it a fair conclusion to say CPLEX is 1.42 times slower than GUROBI, and if you are using CPLEX, but not switching to GUROBI, that you are wasting your company's resources (disregarding investments)?
Is it a fair conclusion to state that SAS is an incalculable risk for an optimization-project, because it fails 3 out of 87 calculation-runs when GUROBI doesn't?
I am aware that this question is awkward, but I think it has practical relevance (at least for me). Thanks in advance for answers.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've recently started using the -fprofile-generate option with gcc.
Is it possible to "under-profile" or "over-profile", such that the generated information from profiling causes subpar performance? Namely:
Can not running profiling for long enough resulting in worse optimizations?
Can running profiling for too long result in worse optimizations?
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What are the advantages of C++ over the others languages in working with videodata and videodevices (developing object detection program). Thank you.
for object detection, you could use python, matlab, java and c++. You have to use c++ if you need substantially speed improvement (C++ is the fastest in most of the cases). You could also use OpenCv easily with c++ for face and object detection.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Are there alternatives that would be more preferred?
Short-circuit evaluation is a crucial feature of most modern programming languages and there's no reason to avoid relying on it. Without it pointer-related tests would be (unnecessarily) much more complicated and less readable.
Of course it's good design, everyone knows to expect it and it beats using nested conditionals.