Skip to content

Cleanup: wireframe: optimize away unncessary getter calls

Enrico Weigelt requested to merge metux/xfwm4:submit/wireframe-optimize into master

We've got lots of getter function calls, just to retrieve some pointers that are used many times in the same function - which is unncessary boilerplate and consumes extra cycles. It's enough to fetch them once and keep them on stack/register.

Since wireframeDraw*() are static and have exactly one caller, the compiler can rewrite them to use the parameters from caller's stack, effectively inline these functions.

Edited by Enrico Weigelt

Merge request reports