[FFmpeg-devel] [PATCH 2/2] lavc/dxvenc: migrate DXT1 encoder to lavu hashtable

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Feb 5 22:08:20 EET 2024


Connor Worley:
>>
>> How much would one gain if the hash function knew that key_size and
>> val_size are four?
>>
> 
> That yields a nice 10-20% speedup on my machine. Are you thinking of macros
> to parametrize key/val size, or possibly optimized versions for common
> sizes?

I am thinking about it not being public at all; as long as we have only
one user...

- Andreas

PS: Is the speedup only for the hashing part or for overall decoding? Is
the comparison the current version of your patch or something that
already has my comments incorporated?



More information about the ffmpeg-devel mailing list