Skip to content

Performance

Robin Alazard edited this page Dec 16, 2015 · 1 revision

Here are some performance notes for those interested by this aspect of my library

To be honest, I made no attempt to benchmark my implementation at the moment, so the notes below might as well be wrong given how hardly predictable the performance behavior of the SQF language can be

Jump Tables

I'm definitely abusing jump tables in my code

There is a handful of these acceleration structures residing into memory allowing for a quicker selection of the action associated to any key

Given that you or the user doesn't set a dozens different actions on the same keybind, then it should allow for optimal performance

Performance impact (estimation only :p)

Even with all the flexibility and features that this library brings, it should still manage to be very competitive versus an average handmade and hardcoded implementation that is usually done with an endless list of different if (...) then { ... } checks.

Does the jump tables imply more memory usage ? Sure ! But hey, we're talking a few kilobytes at most here, so not a problem unless you want to run Arma 3 on an embedded device :)

Clone this wiki locally