supertuxkart / stk-editor

SuperTuxKart - Track Editor
GNU General Public License v3.0
55 stars 24 forks source link

Performance improvements #2

Closed DanWin closed 9 years ago

DanWin commented 9 years ago

Use prefix instead of postfix operators for iterations and reduce the scope of a variable as indicated by cppcheck to increase performance.

deveee commented 9 years ago

Based on similar pull-request: https://github.com/supertuxkart/stk-code/pull/2117#issuecomment-97317499 I'm closing this as invalid.

konstin commented 9 years ago

Also, gcc should be capable of optimizing this, so there shouldn't be any difference in the performance.