Optimizations

Premature and/or over-optimization is often claimed to be a root of most evil in the programming world. However, what to do when optimization IS necessary?

IT Hares discuss certain not-so-trivial optimization techniques. It doesn’t mean that you should use them at all costs (and most likely, you don’t); however, if you do have a reason to optimize – this information may be handy.

Parallel STL for Newbies: Reduce and Independent Modifications

April 26, 2018 by “No Bugs” Bunny

Parallel Programming: Good Way and Bad Way

Quote:

with std::reduce() such code, while it compiles at least under MSVC, MAY occasionally provide wrong results

Another Quote:

if you happen to need something beyond that – take a deep breath and allocate at least several months to understand how does parallelism really work under the hood.

Filed under: On.ProgrammingTips and TricksOptimizations

Read more

Parallel Coding: From 90x Performance Loss To 2x Improvement

April 4, 2018 by “No Bugs” Bunny

Parallel vs Single-Threaded: Speed vs Power Consumption

Quote:

as long as serial code provides good-enough response times from end-user perspective – DON’T PARALLELIZE

Another Quote:

out of all the premature optimizations, premature parallelization is the most premature one

Filed under: On.ProgrammingTips and TricksOptimizations

Read more

Using Parallel (algorithm) Without a Clue: 90x Performance Loss Instead of 8x Gain

March 27, 2018 by “No Bugs” Bunny

Parallel vs Single-Threaded

Abstract:

I made an experiment which demonstrates Big Fat Dangers(tm) of implying that parallelization can be made as simple as just adding a policy parameter to your std:: call.

Quote:

it is still necessary to understand what we’re doing

Filed under: On.ProgrammingTips and TricksProgramming LanguagesOptimizations

Read more

C++: Thoughts on Dealing with Signed/Unsigned Mismatch

March 6, 2018 by “No Bugs” Bunny

-1 ></a> 0U

Quote:

we’re just narrowly avoiding a disaster without understanding how close we were

Another Quote:

there is a chance that intuitive::lt MIGHT be a good thing to make behaviour of our C++ code to correspond better to our-expectations-when-we’re-reading-it

Filed under: On.ProgrammingTips and TricksProgramming LanguagesOptimizations

Tagged With: C/C++GCC/Clang
Read more