[FFmpeg-devel] [TC invoked] [PATCH 2/4] lavc/mpegvideo: use H263DSP dequant function
Martin Storsjö
martin at martin.st
Sat Aug 17 23:56:46 EEST 2024
On Sat, 6 Jul 2024, Rémi Denis-Courmont wrote:
> Le lauantaina 6. heinäkuuta 2024, 19.20.33 EEST Andreas Rheinhardt a écrit :
>> Rémi Denis-Courmont:
>> > Le lauantaina 6. heinäkuuta 2024, 18.23.00 EEST Andreas Rheinhardt a écrit
> :
>> >>
>> >> This adds an indirection. I have asked you to actually benchmark this
>> >> code (and not only the DSP function you add), but you never did.
>> >
>> > I already pointed out previously that this is the way this project does
>> > DSP
>> > code. Certainly it would be nice to hard-code the path when there is only
>> > one possible. This is often the case on Armv8 notably, and of course on
>> > platforms without optimisations.
>> >
>> > But that's a general problem way beyond the scope of this patchset. We
>> > always add indirect function calls in this sort of situation, and I don't
>> > see why I would have duty to benchmark it, so I am going to ignore this.
>>
>> You have a duty to benchmark it because you add it where it wasn't before.
>
> I don't recall other people benchmarking the indirect branch they've added
> previously for other DSP code. Recent examples include VVC and FLAC.
> Rightfully so, because there is not really an alternative anyway. Even GNU
> IFUNCs and Glibc alternative libraries internally use an indirect branch
> (hidden in PLT/GOT), and FFmpeg can't self-patch at load-time like the Linux
> kernel does, nor can it generate dynamic PLT entries with direct branches.
>
> Also if an indirect call is unacceptable, then how come the calling code is
> itself an indirect call and for abstraction rather than performance.
>
> Your request is completely arbitrary here. Yes, there is already an indirect
> call close up, and so? I'm not trying to clean MpegEncContext here, only
> trying to add one function to checkasm, RVV and (with James' work) post-MMX
> x86.
Hi,
As discussions on these patchsets didn't seem to progress but seemed to
get stuck, Rémi requested (admittedly, many many weeks ago) the TC to
resolve the disputes here.
Therefore - the TC has now started reading up on the earlier arguments
made on the mailing list, and will now be discussing what the suggested
way forward will be.
Regards,
The FFmpeg Technical Committee
More information about the ffmpeg-devel
mailing list