Performance
Last updated
Last updated
The BindingSystem offers good performance while maintaining flexibility. Here are some performance benchmarks without additional optimizations:
The BindingSystem is approximately 3x slower than direct value accessors.
The BindingSystem is more than 10x faster than reflection with Mono backend.
With IL2CPP backend, the BindingSystem is 4x slower than direct value setters and around 7x faster than reflection accessors. The getters are almost on par with direct getters.
To balance memory usage and performance speedups, the BindingSystem provides optimization options that you can tweak according to your specific requirements. These options are used to determine for which parts to autogenerate optimized accessors after each recompilation or before each build.
We suggest to leave the slider at half way between no optimization to full optimization because this is the best tradeoff as we found out