[FFmpeg-devel] [PATCH 1/2] lavu/hashtable: create generic robin hood hash table

Connor Worley connorbworley at gmail.com
Tue Feb 6 12:13:27 EET 2024


NVM, I see what you mean by pointerswaps.

On Mon, Feb 5, 2024 at 9:00 PM Connor Worley <connorbworley at gmail.com>
wrote:

> On Mon, Feb 5, 2024 at 3:58 AM Andreas Rheinhardt <
> andreas.rheinhardt at outlook.com> wrote:
>
>> Connor Worley:
>> > +            memcpy(ctx->tmp_key, ctx->set_key, ctx->key_size);
>> > +            memcpy(ctx->tmp_val, ctx->set_val, ctx->val_size);
>>
>> Given that set_key/val are overwritten below, these two can be done via
>> pointerswaps.
>
>
> I don't quite follow, can you elaborate on this part?
> --
> Connor Worley
>


-- 
Connor Worley


More information about the ffmpeg-devel mailing list