I've been trying to implement a fast huffmanHuffman decoder in order to encode/decode video.
However, I'm barely able to decode a 1080p50 video using memy decoder. On the other hand, there are lots of codecs in ffmpeg that entropy decode 4-8 times faster.
I have been trying to optimize and profile my code, but I don't think I can get it to run much faster.
I have been trying to optimize and profile my code, but I don't think I can get it to run much faster. Does anyone have any suggestion as to how one can optimize huffmanHuffman decoding?
My profiler says my application is spending most of the time in the following code: