[MPlayer-dev-eng] Use "svnversion" to determine working copy revision in version.sh
Jan Knutar
jknutar at nic.fi
Sat Jul 8 21:38:46 CEST 2006
On Saturday 08 July 2006 22:27, Herbert Alexander Faleiros wrote:
> On Saturday 08 July 2006 16:17, Loren Merritt wrote:
> [cut]
> > This has already been discussed and rejected. The reason we don't use
> > svnversion is that it is potentially slow.
>
> $ time version.sh
>
> real 0m0.242s
> user 0m0.172s
> sys 0m0.068s
>
> $ svn revert version.sh
> Reverted 'version.sh'
>
> $ time version.sh
>
> real 0m0.036s
> user 0m0.020s
> sys 0m0.016s
>
> Ok, if this difference is critical...
$ time ./version.sh
real 0m1.096s
user 0m0.036s
sys 0m0.032s
$ time svnversion
18928M
real 0m18.447s
user 0m0.468s
sys 0m0.516s
More information about the MPlayer-dev-eng
mailing list