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.
C++ Performance: Common Wisdoms and Common “Wisdoms”
May 30, 2016 by • “No Bugs” Bunny
Quote:
over(ab)using C++ features is a different story, we’ll discuss these features below on case-by-case basis
Another Quote:
Compiler will use all its Next-to-Divine Wisdom to show you that it is smarter than you are, and to ignore most of those inline specifications you carefully wrote.
Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.ProgrammingTips and TricksProgramming LanguagesOptimizations
Read moreC++ for Games: Performance. Allocations and Data Locality
May 23, 2016 by • “No Bugs” Bunny
Abstract:
Allocations and related lack of spatial locality can be DAMN EXPENSIVE
Quote:
During the times of Ancient Gamers (also known as times of Atari, ZX Spectrum, and Commodore64), CPUs were running at clock speed of a single-MHz (and one operation usually took several clocks). At the same time, memory run at about the speed comparable to that of CPUs.
Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.ProgrammingTips and TricksProgramming LanguagesOptimizations
Read moreSize Matters - Is 64-bit App Always Better?
May 1, 2014 by • “No Bugs” Bunny
Abstract:
Sometimes it makes perfect sense to use 32-bit application on 64-bit platform.
Quote:
It is obvious that for N between 13,000,000 and 21,000,000, 64-bit application works about 1000x slower.
Filed under: On.System ArchitectureRequirement analysisDesign decisionsOn.ProgrammingOptimizations
Read moreOptimizing Big Number Arithmetic Without SSE
March 1, 2014 by • “No Bugs” Bunny
Abstract:
How to optimize big number maths without SSE
Quote:
OpenSSL prefers to use assembler for big number calculations
Filed under: On.ProgrammingTips and TricksOptimizations
Read more



