[PATCH] guess default branch from HEAD
larsh at hjemli.net
larsh at hjemli.net
Thu Jul 21 12:34:30 CEST 2011
On Tue, Jul 19, 2011 at 10:13:54AM +0000, chris wrote:
> <larsh at ...> writes:
> > On Tue, Jul 19, 2011 at 09:35:42AM +0000, chris wrote:
> > > Should guess_defbranch() be called here instead of hard-coding "master"?
> >
> > I don't think so, due to performance concerns (as explained earlier in this
> > thread). It's a compromise, favoring performance over correctness.
>
> Well, it sounds like premature optimization to me.
That may be true.
> I wonder how much
> performance impact that would really have, and if cgit's caching support doesn't
> negate any potential issue on busy servers anyway.
I'll try to do some benchmarking with different
setups and post some numbers.
--
larsh
More information about the CGit
mailing list