--- /dev/null
+Return-Path: <matt@bubblegen.co.uk>\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 65C5C6DE1585\r
+ for <notmuch@notmuchmail.org>; Sat, 11 Apr 2015 11:21:13 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.98\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.98 tagged_above=-999 required=5 tests=[AWL=0.980]\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 18lIUDALymHz for <notmuch@notmuchmail.org>;\r
+ Sat, 11 Apr 2015 11:21:10 -0700 (PDT)\r
+X-Greylist: delayed 583 seconds by postgrey-1.35 at arlo;\r
+ Sat, 11 Apr 2015 11:21:10 PDT\r
+Received: from sip.bubblegen.co.uk (bubblegen.plus.com [80.229.236.194])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id AEB366DE1583\r
+ for <notmuch@notmuchmail.org>; Sat, 11 Apr 2015 11:21:10 -0700 (PDT)\r
+Message-ID: <55296360.1040208@bubblegen.co.uk>\r
+Date: Sat, 11 Apr 2015 19:09:36 +0100\r
+From: Matthew Lear <matt@bubblegen.co.uk>\r
+MIME-Version: 1.0\r
+To: David Bremner <david@tethera.net>\r
+Subject: Re: emacs / vim - time taken to open threads\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
+ <87pp7o4hjc.fsf@maritornes.cs.unb.ca>\r
+In-Reply-To: <87pp7o4hjc.fsf@maritornes.cs.unb.ca>\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: 7bit\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: Sat, 11 Apr 2015 18:21:13 -0000\r
+\r
+On 01/04/15 05:08, David Bremner wrote:\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
+> \r
+\r
+Sorry for the late reply. That has definitely made an improvement.\r
+Opening a large thread takes much less time with the patch applied.\r
+-- Matt\r