Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 491E7431FBD; Fri, 11 Dec 2009 08:24:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T4FcuN9-N1Go; Fri, 11 Dec 2009 08:24:15 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 970FA431FAE; Fri, 11 Dec 2009 08:24:15 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 45E462542F8; Fri, 11 Dec 2009 08:24:15 -0800 (PST) From: Carl Worth To: Dirk Hohndel , notmuch@notmuchmail.org In-Reply-To: <1260511813.3341.22.camel@dhohndel-mobl.amr.corp.intel.com> References: <1260511813.3341.22.camel@dhohndel-mobl.amr.corp.intel.com> Date: Fri, 11 Dec 2009 08:24:02 -0800 Message-ID: <874onx4gyl.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] emacs mode performance issue X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2009 16:24:16 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 10 Dec 2009 22:10:13 -0800, Dirk Hohndel wr= ote: > I'm in the search results window in Emacs, on an LKML thread with 140+ > messages. I hit return to view this thread - Emacs consumes 100% CPU > but even after waiting 3 minutes it doesn't display the result (this is > on a fast system Lenovo x200s).=20 >=20 > C-g stops the process and gets me dumped into a clearly partially > processed buffer. >=20 > Is there a good way to collect more profiling information to figure out > why this is so slow? My guess is that it's not a problem of being slow. It sounds much more likely that some of our lame emacs lisp code has gotten itself into an infinite loop. We've got a bunch of silly, ad-hoc code for jumping around the emacs buffer looking for various things. And then we have invisible characters in the emacs buffer which make some of the movement commands behave differently, and unreliably. So there's some ugliness here. The right fix is to move more of the parsing logic into the C code where I can actually comprehend things, and then emit some fully-quoted structure that we can walk with simple, reliable emacs code. In the meantime, if I could get my hands on a message that triggers this bug, that would be useful. (Here's a case where it would be nice to have the "notmuch search --output=3Dmaildir" command I had talked about so that we could export the results of a particular search.) =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLInIi6JDdNq8qSWgRAkM9AJ4mnHAn6D1CygjWlusz+EGV/87DegCdErWM x9LBWz0Pqw7v1jVUmxaAw2Y= =dkr3 -----END PGP SIGNATURE----- --=-=-=--