From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: boost tarball Date: Tue, 27 May 2008 14:06:11 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211911603 3112 80.91.229.12 (27 May 2008 18:06:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 18:06:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 27 20:07:24 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 1K13Zh-0004gT-Mb for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 20:07:05 +0200 Original-Received: from localhost ([127.0.0.1]:44428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K13Yw-0002YN-A6 for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 14:06:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K13Ys-0002YI-9O for emacs-devel@gnu.org; Tue, 27 May 2008 14:06:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K13Yq-0002Y5-Lj for emacs-devel@gnu.org; Tue, 27 May 2008 14:06:13 -0400 Original-Received: from [199.232.76.173] (port=52252 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K13Yq-0002Y2-JX for emacs-devel@gnu.org; Tue, 27 May 2008 14:06:12 -0400 Original-Received: from 206-248-174-248.dsl.teksavvy.com ([206.248.174.248]:40677 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K13Yq-0003vp-B0 for emacs-devel@gnu.org; Tue, 27 May 2008 14:06:12 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 479D9B408C; Tue, 27 May 2008 14:06:11 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:97815 Archived-At: Those people who tried to debug the boost-tarball problem recently (or those people who tried to open large tarballs in Emacs) know that Emacs is unusable on such large tarballs. Well... was. I've just installed a patch to tar-mode.el which makes it use the new buffer-swap-text primitive. So now the tar data is kept in an auxiliary buffer rather than being mixed with the summary buffer. This way we don't need to mess with set-buffer-multibyte any more and the result is that opening the 160MB boost.tar file now takes up just below 7s (including starting Emacs) with a warm cache. As opposed to more than 3 minutes before (most of it spent in set-buffer-multibyte after the tar ball has already been loaded and parsed). This is a significant change, so it's likely I've introduced bugs along the way. Stefan