Showing only posts tagged Qt. Show all posts.

Reducing C++ compilation time in Magnum: code optimizations

Large C++ projects of­ten suf­fer with very long times for both full and in­cre­men­tal com­pi­la­tion, se­vere­ly hurt­ing pro­duc­tiv­i­ty. The fol­low­ing se­ries will over­view some tech­niques em­ployed in Mag­num to make it­er­a­tion times small­er, this ar­ti­cle fo­cus­es on code-based op­ti­miza­tions.

C++11 features in Magnum: Better memory management

Re­gard­less to what lan­guage you use, you al­ways need to think about mem­o­ry man­age­ment. Garbage col­lec­tors might give you a sense that it’s done au­tomag­i­cal­ly, but to get more per­for­mance you need to have con­trol over heap us­age in code run­ning at 60 FPS. C++11 helps to avoid many heap al­lo­ca­tions with­out sac­ri­fic­ing us­abil­i­ty.