From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joey Hess Subject: Re: speed of git reset -- file Date: Thu, 2 Jun 2011 00:46:38 -0400 Message-ID: <20110602044638.GC5081@gnu.kitenet.net> References: <20110531212639.GA13234@sigill.intra.peff.net> <7v62oqignm.fsf@alter.siamese.dyndns.org> <20110601195831.GA30070@sigill.intra.peff.net> <20110601201629.GA25354@gnu.kitenet.net> <20110601211847.GA31958@sigill.intra.peff.net> <20110601220502.GA28493@gnu.kitenet.net> <20110601225647.GD16820@sigill.intra.peff.net> <20110601233157.GA2468@gnu.kitenet.net> <20110602031831.GA21008@sigill.intra.peff.net> <20110602043630.GA5081@gnu.kitenet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oJ71EGRlYNjSvfq7" Cc: GIT Mailing-list To: Jeff King X-From: git-owner@vger.kernel.org Thu Jun 02 06:46:51 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRzo2-0004rH-PB for gcvg-git-2@lo.gmane.org; Thu, 02 Jun 2011 06:46:51 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753278Ab1FBEqq (ORCPT ); Thu, 2 Jun 2011 00:46:46 -0400 Received: from wren.kitenet.net ([80.68.85.49]:38015 "EHLO kitenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752989Ab1FBEqp (ORCPT ); Thu, 2 Jun 2011 00:46:45 -0400 Received: from gnu.kitenet.net (dialup-4.152.108.216.Dial1.Atlanta1.Level3.net [4.152.108.216]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gnu", Issuer "Joey Hess" (verified OK)) by kitenet.net (Postfix) with ESMTPS id 73B7611914F; Thu, 2 Jun 2011 00:46:43 -0400 (EDT) Received: by gnu.kitenet.net (Postfix, from userid 1000) id C9406401C9; Thu, 2 Jun 2011 00:46:38 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20110602043630.GA5081@gnu.kitenet.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: --oJ71EGRlYNjSvfq7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Joey Hess wrote: > Jeff King wrote: > > Yeah, it is going to be painful on a cold cache. But I wonder whether > > your workflow would really permit the "reset" thing to make a > > difference. That is, are you doing "git reset -- file" from a cold > > cache, and then doing _nothing_ else with git? Because while yes, it may > > be annoying for the "reset" to take 30 seconds, it's warming the cache > > so that the subsequent "diff" or "status" will take 29.1 seconds less. > >=20 > > Which isn't to say I'm not sympathetic to the performance problems of > > large repos on a cold cache. But I'm not sure there's really a way > > around that. You're going to want to see the stat information eventually > > if you are doing anything meaningful with git, and once it's loaded, the > > warm cache delay isn't too bad. Trying to avoid it seems like a losing > > battle. >=20 > Could be true in general. While I've gotten the reset out of this > workflow (realized I could just `git checkout HEAD file` and that would > also clear staged changes), in this case it was actually *unlikely* that > the cache would be unused, as I was resetting to throw unwanted changes > away. Typo, meant to say unlikly that the cache would be used. --=20 see shy jo --oJ71EGRlYNjSvfq7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIVAwUBTecVrskQ2SIlEuPHAQhm+A//Y7UZuqGJpBoXET7s6xyFc8mL/alX+wVC KcEjdrBKQcq61R37Y7+wcYzuyb9njaB4rsY/w4KZVJ8763Sho3c6UODzQS0OkDwL erV89EyOiRrURlD1cXBo43Oj6LWvG/BnB5iYZL0oecEW9K83P96om9qtZSz5XRG/ 1se1EPq0CWv05o+hYILFWU9wY1DQ6WASRLqqmbzMUVqBvjnrQq4megt5xSOAgRLd PkHkJbj5oIPzeFHvenjYYdC8jmChoE2uKW0WC8TksTJFQAW3w6aFFj4I+YICrJay datV4T0ILTc+dnTJ7A4/QNwejEhOEp177PFGm2ED/H2c1ZKtnOKPe0Hsoh1heaqf 2d5HoU2ZemKZGFJkb8KUdE54j21MXV9KmaDBTqUJkvOxXohLeToRjf2237Yv1wBM cv1QNe1KSTeZSQhlHMzDT5RQgwBOycoOaeRzA1Qt5wcHhGeTxhWswDo1PSxnElZG izO0rssB19IZuy5T3JFq7T1tCAbwhhPvhL8N3bjmkJ5CIWR4xiJvVoBJUHkFRwZF 747Evl0RVSq4X8ou9Ki6XlFTXZwbACSD1MOVjO01n9ss461PFP5cYVW/rI/psZ0Z q1jb5ayXLVHzimfi+ocygQ+V+q+NXS3XKNypZuYEzCAP2flOtdRdQSECjTnp8Naz 4gWp28WpxpM= =r6gk -----END PGP SIGNATURE----- --oJ71EGRlYNjSvfq7--