Re: [FFmpeg-devel] [PATCH] avutil/hash: Avoid relocations for hash names

2024-03-17 Thread Andreas Rheinhardt
Andreas Rheinhardt: > These strings are so short (longest takes 11B) that using > pointers is wasteful. Avoiding them also moves hashdesc > into .rodata (from .data.rel.ro). > > Signed-off-by: Andreas Rheinhardt > --- > libavutil/hash.c | 71 +++- > 1

[FFmpeg-devel] [PATCH] avutil/hash: Avoid relocations for hash names

2024-03-14 Thread Andreas Rheinhardt
These strings are so short (longest takes 11B) that using pointers is wasteful. Avoiding them also moves hashdesc into .rodata (from .data.rel.ro). Signed-off-by: Andreas Rheinhardt --- libavutil/hash.c | 71 +++- 1 file changed, 40 insertions(+), 31 d