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

Antoine Cellerier dionoea at videolan.org
Fri Jan 9 15:35:31 CET 2009

On Fri, Jan 09, 2009, Rémi Denis-Courmont wrote:
> 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.

Well it prevents computing the marq string more than once (everytime the
filter function is called). So basically you save 1 strftime call and 1
str_fmt_meta call per run (except on the first one).


Antoine Cellerier

More information about the vlc-devel mailing list