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

Connor Worley connorbworley at gmail.com
Tue Feb 6 07:00:16 EET 2024


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


More information about the ffmpeg-devel mailing list