summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2017-04-07 16:17:16 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2017-04-07 16:35:55 +0200
commit665bf529481c0dbe9345d2473bce8f8d99ece0c5 (patch)
treec878883448dfbba3cf1095f8d0f6b09537fd7655 /.gitattributes
parent65f8210e503dd6cc8fdfcae7de5cb7d9a1bed854 (diff)
Optimize-out some debug and/or non-tools methods
Collisions and nav debug are conditionally compiled depending on DEBUG_ENABLED is_editor_hint() and is_node_being_edited() are compiled only with TOOLS_ENABLED Every affected method is implemented in the header in case its macro is not present (the getters just returning false and the setters having an empty body) so the compiler can inline and finally no-op-out them as likely as possible. is_node_being_edited() already showed a similar optimization effort and has been adapted to this change. Furthermore, and as a consequence, -debugcol and -debugnav will not work on non-debug (strict release) builds. This can bring a little bit of runtime performance on release and non-tooled builds (less code, so less cycles to spend and maybe more cache friendly).
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions