[MPlayer-dev-eng] [PATCH] revert CPU speed detection
D Richard Felker III
dalias at aerifal.cx
Fri Oct 8 04:42:33 CEST 2004
On Fri, Oct 08, 2004 at 03:10:41AM +0200, Diego Biurrun wrote:
> D Richard Felker III writes:
> > On Thu, Oct 07, 2004 at 11:31:47AM +0200, Diego Biurrun wrote:
> > > D Richard Felker III writes:
> > > > On Thu, Oct 07, 2004 at 04:34:50AM +0200, Diego Biurrun wrote:
> > > > >
> > > > > I've had a look at a way to make the CPU speed detection run only in
> > > > > verbose mode but then reconsidered. Speed detection has never worked
> > > > > reliably and slows down startup noticeably. Thus I propose the
> > > > > following patch that rips out CPU speed detection by reverting the
> > > > > commit from Atmos that added it:
> > > > >
> > > > > http://mplayerhq.hu/pipermail/mplayer-cvslog/2003-September/016619.html
> > > > >
> > > > > What do you think?
> > > >
> > > > i'm against applying this patch as-is. it's just a reversed version of
> > > > the original patches. granted those seem to have had some cosmetics,
> > > > but reverting that now is just more cosmetics.
> > >
> > > Not reverting the cosmetics defeats the purpose of forbidding
> > > cosmetics in the first place. No cosmetics lead to cleaner CVS diffs,
> > > if you keep the cosmetics now, the diffs remain unreadable, so what
> > > are we supposed to gain by not removing the cosmetics?
> >
> > right now we have one unreadable diff. if we commit your patch we have
> > two unreadable diffs. 2>1 :)
>
> My original idea was that committing an inverse patch would "cancel
> out" the cpuspeed detection commit across cvs diffs.
>
> Let me explain: Let's assume (actual numbers are not important) that
> cpuspeed was committed as version 1.10 of cpudetect.c and the inverse
> patch is committed as version 1.13. If you are at revision 1.20 and
> wish to look at cvs diff between, say 1.8 and 1.15 you will look at a
> diff that contains only the changes from 1.9, 1.11, 1.12, 1.14, 1.15.
> This should be easier to understand than having 1.10 partially still
> in there.
>
> See my point?
ok this makes sense.
> Also I prefer splitting up commits to small self-contained units, so I
> think
>
> 1.10: cpuspeed detection containing useful feature XXX
> 1.11
> 1.12
> 1.13: back out cpuspeed detection completely
> 1.14: useful feature XXX
>
> is cleaner than
>
> 1.10: cpuspeed detection containing useful feature XXX
> 1.11
> 1.12
> 1.13: back out cpuspeed detection except for useful feature XXX
>
> But all of this may be personal preference and not overly important...
i prefer the second.
rich
More information about the MPlayer-dev-eng
mailing list