[PATCH] very performance basic non behaviour changing optimisations (in hotspot only)
|Reported by:||tuan kuranes||Owned by:||tuan kuranes|
Done only on very hot CPU intensive code, using very sleepy profiler hotspot tracing:
what the patch does
- Debranch function
- const variables methods and parameters wherever possible.
The most and foremost one being getting rid of all new/free/malloc/delete during runtime as that's your main performance killer (all memory should be pre-allocated and stored in memory pools, period).