[vlc-devel] [PATCH 09/12] network: io: Remove VLA usages

Pierre Ynard linkfanel at yahoo.fr
Fri Dec 11 16:46:03 CET 2020


> I agree with Steve. I want to minimize #ifdef usage and double
> implementation.

Maybe we all agree on that part then, because I want to minimize #ifdef
usage too.

> For me, the main advantage of VLA is code simplicity. If you have to put
> ifdef and implement something twice, you kill the simplicity.

I like simplicity too. But as pointed out by Rémi, and as I meant
when talking about uses that are "actually beneficial to the code",
there are other advantages to VLAs than simplicity, some of which more
objective like performance. What do you think about those, and do you
think simplicity should trump them?

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."


More information about the vlc-devel mailing list