[vlc-devel] [PATCH] Added a performance check to marquee filter

Rémi Denis-Courmont rdenis at simphalempin.com
Fri Jan 9 15:31:22 CET 2009

On Fri, 9 Jan 2009 14:40:00 +0200, "basos g" <noxelia at gmail.com> wrote:
> We preparse format string for the special case of user wanting to
> print % , so passing %%, marking the string as unchanged to avoid
> unneeded calls to time() and localtime()

I am not convinced that this optimization is of any use. time() is just one
system call and localtime() is just O(1) integer arithmetic.

Rémi Denis-Courmont

More information about the vlc-devel mailing list