laziness
Jelmer Vernooij
jelmer at samba.org
Thu Apr 7 13:18:30 UTC 2011
On Thu, 2011-04-07 at 15:10 +0200, John Arbash Meinel wrote:
> On 4/7/2011 2:16 PM, Eli Zaretskii wrote:
> >> Date: Thu, 07 Apr 2011 13:41:20 +0200
> >> From: John Arbash Meinel <john at arbash-meinel.com>
> >> Cc: bazaar at lists.canonical.com
> >>
> >> Of course, on Windows with len(sys.path) == 77, my 'bzr ls -R' time is
> >> still about 800ms. (An old compiled bzr is down around 284ms here with
> >> - --no-plugins)
> >
> > What is the size of that tree (e.g., how many directories and files)?
> > And on what hardware?
> >
> > In an Emacs branch, I get 1.5s (1.25 with --no-plugins) with bzr
> > 2.3.1, on a 2.66GHz Pentium D.
>
> The specific point is not to measure the time spent in running 'ls', but
> the overhead of importing bzrlib and loading its formats and
> repositories, etc.
>
> I'm pretty sure he is testing against a tree with almost no files. (In
> my case, it is a tree with only a single file.)
This is running "bzr ls" in a etckeeper checkout, which has 30 files in
the root directory. It's a bit larger than your 1-file branch but still
small enough that it doesn't have a significant impact.
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20110407/f747916f/attachment.pgp>
More information about the bazaar
mailing list