From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.devel Subject: Re: Git repository and branches ? Date: Sun, 24 Feb 2008 03:00:08 +0100 Organization: GNU's Not UNIX! Message-ID: <200802240200.m1O208m8015417@localhost.localdomain> References: <200802210200.m1L20CP8004750@localhost.localdomain> <87wsoz9j1b.fsf@catnip.gol.com> <200802220200.m1M207el003444@localhost.localdomain> <200802230200.m1N206aV007398@localhost.localdomain> <87zltsidrs.fsf@catnip.gol.com> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1203820470 28446 80.91.229.12 (24 Feb 2008 02:34:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 02:34:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 03:34:55 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JT6hZ-00048a-FG for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 03:34:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT6h3-0001mY-W3 for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 21:34:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JT6gN-0001IN-7j for emacs-devel@gnu.org; Sat, 23 Feb 2008 21:33:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JT6gI-0001GH-5V for emacs-devel@gnu.org; Sat, 23 Feb 2008 21:33:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT6gH-0001GD-VJ for emacs-devel@gnu.org; Sat, 23 Feb 2008 21:33:33 -0500 Original-Received: from master.uucpssh.org ([193.218.105.66]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JT6gD-0000GU-E1; Sat, 23 Feb 2008 21:33:29 -0500 Original-Received: by master.uucpssh.org (Postfix, from userid 10) id 7B089C85BB; Sun, 24 Feb 2008 03:32:34 +0100 (CET) Original-Received: from localhost.localdomain (IDENT:1000@localhost [127.0.0.1]) by localhost.localdomain (8.14.1/8.13.8) with ESMTP id m1O20E3B015431; Sun, 24 Feb 2008 03:00:14 +0100 Original-Received: (from xma@localhost) by localhost.localdomain (8.14.1/8.13.8/Submit) id m1O208m8015417; Sun, 24 Feb 2008 03:00:08 +0100 In-reply-to: <87zltsidrs.fsf@catnip.gol.com> (message from Miles Bader on Sat, 23 Feb 2008 11:53:59 +0900) User-Agent: Rmail in GNU Emacs 23.0.60.2 on GNU/Linux Jabber-ID: xma01@jabber.fr X-uucpssh: Found to be clean X-uucpssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.354, required 4.6, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.05, BAYES_00 -2.60, SPF_HELO_PASS -0.00) X-uucpssh-From: xma@gnu.org X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90198 Archived-At: Xavier Maillard writes: > I tested it here and it worked like a charm. The only drawback is that > switching from a branch to master and vice versa takes very long... Really? That's very surprising. For me it's about 5 seconds to switch between some emacs branches, with a cold FS cache (once stuff is in the filesystem cache, switching is essentially instanteous). Maybe is has to do with the hardware then; my /home is mounted onto a SDHC card as my current laptop does not have a valid internal HDD. Here are the results of consecutive git branch/git checkout: xma@localhost> git branch ~/usr/src/GITed/emacs * master rmail-mbox xma@localhost> time git checkout rmail-mbox ~/usr/src/GITed/emacs Switched to branch "rmail-mbox" git checkout rmail-mbox 5.97s user 1.04s system 6% cpu 1:41.16 total xma@localhost> git branch ~/usr/src/GITed/emacs master * rmail-mbox xma@localhost> time git checkout master ~/usr/src/GITed/emacs Switched to branch "master" git checkout master 5.16s user 0.88s system 8% cpu 1:07.25 total As you can see, the results are really bad but I do not switch between branch so often. Are you per-chance using windows? Are you joking ? :) I am using a real GNU/linux system, more precisely, it is a Slackware 12.0 GNU/linux system. Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org