unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Surely 'bzr branch' shouldn't be this slow?
@ 2010-01-03 17:47 Alan Mackenzie
  2010-01-03 17:59 ` Óscar Fuentes
  0 siblings, 1 reply; 43+ messages in thread
From: Alan Mackenzie @ 2010-01-03 17:47 UTC (permalink / raw)
  To: emacs-devel

Hi, all,

Having created a local copy of the bzr repository in my directory
~/emacs/emacs.bzr/trunk, I then went to create the now familiar
quickfixes branch from it, with this command:

    $ time bzr branch emacs.bzr/trunk/ quickfixes/

.  This took over 39 minutes at 100% CPU usage.  For comparison, a full
build on my machine takes ~33 minutes.

What on Earth is going on here?  Surely creating a branch (which,
essentially, is just copying or linking files) should take at most a few
seconds.

Is there some configuration setting (or something) I've missed?

-- 
Alan Mackenzie (Nuremberg, Germany).




^ permalink raw reply	[flat|nested] 43+ messages in thread
* Re: Surely 'bzr update' shouldn't be this slow?
@ 2010-01-07 23:29 grischka
  2010-01-08  5:57 ` Stephen J. Turnbull
  0 siblings, 1 reply; 43+ messages in thread
From: grischka @ 2010-01-07 23:29 UTC (permalink / raw)
  To: stephen; +Cc: emacs-devel

> > It IS copying, conceptually
>
> Alan, don't be contrary.  Óscar is just telling you the facts, and 
> AIUI *he* would not have chosen bzr if it were up to him.  He's just 
> trying to help you and others make the best use of the official VCS.

But Óscar wasn't telling any facts aside from that the issue is maybe
"complex" and "non-trivial".

> No, it has to do a lot more than that.  

Has to?  Why?

> What it is doing is
> conceptually most like garbage collection.  The actual content of a
> repository is stored as a set of compressed archives of file objects,
> revision objects, and patches, plus some indicies.  (These archives
> are called "packs.")  The "processing" goes through those objects,
> throws out the ones not needed for the branch you request, and
> reconstructs minimal packs and indicies for them.

So it's slow because it does lots of slow stuff.  Fine.

Obviously compression is slow, but who says it needs to de/recompress
the objects just to build a new index or to build a new pack with some
but not all of the objects?

Also with http:  You claim it's slow because it needs to download entire
packs.  But AFAIK http supports seeking into file offsets.  Or otherwise
you can store the top of the history near the beginning of the pack such
that you can stop downloading as soon as you have the missing updates.
Or otherwise you could have packs on the server only for commits older
than a year and anything more recent as single files.  It's not that
there weren't alternatives.

--- grischka





^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2010-01-08 17:49 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-03 17:47 Surely 'bzr branch' shouldn't be this slow? Alan Mackenzie
2010-01-03 17:59 ` Óscar Fuentes
2010-01-06 13:10   ` Alan Mackenzie
2010-01-06 13:28     ` Jason Rumney
2010-01-06 14:06       ` Óscar Fuentes
2010-01-06 18:23         ` Eli Zaretskii
2010-01-06 20:21           ` Stefan Monnier
2010-01-07  7:44           ` Yavor Doganov
2010-01-07  8:37             ` Lennart Borgman
2010-01-07  9:31               ` Juanma Barranquero
2010-01-07 19:18               ` Stephen Berman
2010-01-07 19:54               ` Eli Zaretskii
2010-01-07 20:09                 ` Lennart Borgman
2010-01-07 21:48                   ` Jason Earl
2010-01-07 23:48                     ` Lennart Borgman
2010-01-08  2:07                       ` Jason Earl
2010-01-08  7:10                         ` Lennart Borgman
2010-01-08  8:13                   ` Eli Zaretskii
2010-01-07 14:46             ` Stefan Monnier
2010-01-07 17:05               ` Yavor Doganov
2010-01-07 19:43                 ` Stefan Monnier
2010-01-07 19:46                   ` Lennart Borgman
2010-01-07 20:26                     ` Thrashing [was: Surely 'bzr branch' shouldn't be this slow?] Stephen J. Turnbull
2010-01-07 20:20                       ` Lennart Borgman
2010-01-07 13:40         ` Surely 'bzr update' shouldn't be this slow? [was: branch] Alan Mackenzie
2010-01-07 13:56           ` Surely 'bzr update' shouldn't be this slow? Óscar Fuentes
2010-01-07 14:03             ` Lennart Borgman
2010-01-07 15:18               ` Jan Djärv
2010-01-07 14:52             ` Alan Mackenzie
2010-01-07 15:00               ` Juanma Barranquero
2010-01-07 15:17                 ` Karl Fogel
2010-01-07 17:51                   ` Glenn Morris
2010-01-07 20:48                     ` Karl Fogel
2010-01-07 21:21                       ` Glenn Morris
2010-01-08  8:48                       ` Eli Zaretskii
2010-01-07 15:17               ` Óscar Fuentes
2010-01-07 17:54               ` Stephen J. Turnbull
2010-01-07 15:06           ` Stefan Monnier
2010-01-06 14:37     ` Surely 'bzr branch' " Stefan Monnier
2010-01-07  5:00     ` Karl Fogel
  -- strict thread matches above, loose matches on Subject: below --
2010-01-07 23:29 Surely 'bzr update' " grischka
2010-01-08  5:57 ` Stephen J. Turnbull
2010-01-08 17:49   ` grischka

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).