--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 2C2806DE19AD\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Apr 2015 16:05:00 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.795\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.795 tagged_above=-999 required=5 tests=[AWL=0.795]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 40n0yae7YbZR for <notmuch@notmuchmail.org>;\r
+ Fri, 3 Apr 2015 16:04:57 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id D01A26DE19B7\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Apr 2015 16:04:55 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <david@tethera.net>)\r
+ id 1Yd9xA-0007V1-EF; Wed, 01 Apr 2015 04:08:33 +0000\r
+Received: (nullmailer pid 24553 invoked by uid 1000); Wed, 01 Apr 2015\r
+ 04:08:23 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Matthew Lear <matt@bubblegen.co.uk>\r
+Subject: Re: emacs / vim - time taken to open threads\r
+In-Reply-To: <49796ef89d505ab1039478982568a0b9.squirrel@webmail.plus.net>\r
+References: <5511DE10.80107@bubblegen.co.uk>\r
+ <87384u6lgb.fsf@maritornes.cs.unb.ca> <m2d23xv7e8.fsf@guru.guru-group.fi>\r
+ <49796ef89d505ab1039478982568a0b9.squirrel@webmail.plus.net>\r
+User-Agent: Notmuch/0.19+96~g703c8f9 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Wed, 01 Apr 2015 06:08:23 +0200\r
+Message-ID: <87pp7o4hjc.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 03 Apr 2015 23:05:00 -0000\r
+\r
+Matthew Lear <matt@bubblegen.co.uk> writes:\r
+\r
+> Here's two attachments obtained using the in-built profiler in emacs 24 -\r
+> one for memory profiling and one for cpu. This particular thread took > 30\r
+> secs to load and emacs was locked up the entire time. I'm no lisp expert,\r
+> but perhaps somebody could interpret this and possible suggest what could\r
+> be going on..? W.r.t. both cpu and memory usage, quite a lot of time seems\r
+> to be spent in indent-rigidly and notmuch-show-insert-thread.\r
+>\r
+\r
+That's consistent with what I've seen with very large text attachements.\r
+Can you try the patch\r
+\r
+ id:1427540939-10055-1-git-send-email-markwalters1009@gmail.com [1]\r
+\r
+[1] http://mid.gmane.org/1427540939-10055-1-git-send-email-markwalters1009@gmail.com\r