Reduce number of dynamic memory allocations
Compare changes
Dynamic memory allocation can take up a significant amount of time in the decoder. This reduction of dynamic memory allocation can speed up the decoder by more than 10% at low resolutions (class D).
Please refer to individual commits for more details