From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 2/2] Implement a simple delta_base cache Date: Sat, 17 Mar 2007 16:12:52 -0700 Message-ID: <7vabybqxaj.fsf@assigned-by-dhcp.cox.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nicolas Pitre , Git Mailing List To: Linus Torvalds X-From: git-owner@vger.kernel.org Sun Mar 18 00:12:58 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1HSi52-00007D-4R for gcvg-git@gmane.org; Sun, 18 Mar 2007 00:12:56 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752311AbXCQXMy (ORCPT ); Sat, 17 Mar 2007 19:12:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752306AbXCQXMy (ORCPT ); Sat, 17 Mar 2007 19:12:54 -0400 Received: from fed1rmmtao103.cox.net ([68.230.241.43]:55840 "EHLO fed1rmmtao103.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752083AbXCQXMx (ORCPT ); Sat, 17 Mar 2007 19:12:53 -0400 Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmmtao103.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070317231254.ELYC18070.fed1rmmtao103.cox.net@fed1rmimpo01.cox.net>; Sat, 17 Mar 2007 19:12:54 -0400 Received: from assigned-by-dhcp.cox.net ([68.5.247.80]) by fed1rmimpo01.cox.net with bizsmtp id bzCs1W00D1kojtg0000000; Sat, 17 Mar 2007 19:12:53 -0400 In-Reply-To: (Linus Torvalds's message of "Sat, 17 Mar 2007 14:45:49 -0700 (PDT)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Linus Torvalds writes: > Here's the trivial patch to extend the caching to 1k entries if somebody > cares. I don't know if the small added performance is worth it. This largely would depend on the project, but if a blob that is cached is 20kB each, a 1024-entry cache would grow to 20MB. We may need to introduce early eviction of cached objects with total cache size limit, configurable per repository.