From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 05F7E6DE09CD for ; Sat, 19 Jan 2019 01:03:45 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.333 X-Spam-Level: X-Spam-Status: No, score=0.333 tagged_above=-999 required=5 tests=[AWL=-0.321, DKIMWL_WL_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NuEancaFfHXM for ; Sat, 19 Jan 2019 01:03:43 -0800 (PST) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by arlo.cworth.org (Postfix) with ESMTPS id D21AC6DE0240 for ; Sat, 19 Jan 2019 01:03:42 -0800 (PST) Received: by mail-wr1-f51.google.com with SMTP id p4so17795871wrt.7 for ; Sat, 19 Jan 2019 01:03:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=to:subject:in-reply-to:references:from:date:message-id:mime-version; bh=B611MvflQmh2wgD7eGRRR5cefn0X+qlXn2oD6OLh2+E=; b=SmgX/SWYdhOvHTznqhHqISIBtnuKvHUvkbWii8yvGlp+hqXGgfvXE8GW0njZY9hFlL /Tugg/WqVJTtjGLvVoZ6+YcX8h7ucK8vtEfUuEJA/s5+h+tyCSbRlYKcXV213ZilFsZN bx9xUDTEkb1iBXOy6HrejephVCHQLCgnvusSepJrJbM0SGgi3Nt9RcoE9QVagM+Eu63X wQMmQq7+p+nS/GrBpcXnJbCt/Horju8K6AqXRoxW6Tc/NTkg18unad6SP8KeDRk+vCcV AS9lhINCyL/2HWBsVemc0vk9nVi3MqurHBwz/rZCrgekt1xCvqdvXAZXYIHZN2N9fGmi it/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:in-reply-to:references:from:date :message-id:mime-version; bh=B611MvflQmh2wgD7eGRRR5cefn0X+qlXn2oD6OLh2+E=; b=VZ2loHLK93QQJ9JEZPHoEONKow1liecEzNCDFhTVpxNH1xHxcwNYhsb7MEoScBpeJ9 tO9VGgWil1kj2ZAOTZTGeNXiJrHjRstrOU4k3/tdFkkS8oeB96v7j3zqZJ+0qeTRQ4v4 ioB53iiC1y98lENrtMoRa+8IXe9twTgWC4nY3CKgY2yQskqLd56AJj9rl8QMMAwgAj8Y olUKgkqnETQ/nlxUV5JN3QObz0DuDwFEm3W+TBrjp8asqOnWU/x/vcjgjdaoHaU2OAjv d4hQwhKaMStyuoBapeju2Znk3WxcfmCWP9CuLnr2XDIyH3ieer5uHVb2ooXDuEShxucm WrrQ== X-Gm-Message-State: AJcUukfHPXJ0h1QUzJKlDaaww09sbcwiN0mUFddc13QKyJsU4Y81qIsH tdbz2AtV8+z8zwHjqu/8Gtdw4Q== X-Google-Smtp-Source: ALg8bN681GB1anz0I48tO013HYza1u9tBkpBFk2NunZhnu0av8E2Foc8zR7bAyoOUC7H/73QFhvBMw== X-Received: by 2002:adf:c108:: with SMTP id r8mr20518610wre.233.1547888620643; Sat, 19 Jan 2019 01:03:40 -0800 (PST) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id t5sm47887787wmd.15.2019.01.19.01.03.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 01:03:39 -0800 (PST) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 3c8f0d9f; Sat, 19 Jan 2019 09:03:39 +0000 (UTC) To: "Landry\, Walter" , "notmuch\@notmuchmail.org" Subject: Re: emacs slow with large threads In-Reply-To: <87fttpy0n5.fsf@mechane.wlandry.net> References: <87fttpy0n5.fsf@mechane.wlandry.net> X-HGTTG: zarniwoop From: David Edmondson Date: Sat, 19 Jan 2019 09:03:38 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Sat, 19 Jan 2019 09:03:45 -0000 On Saturday, 2019-01-19 at 00:03:18 +00, Landry, Walter wrote: > Hello Everyone, > > I am using the emacs frontend to notmuch. It has mostly been a pleasant > experience, but I am having a problem with large threads. Essentially, > when I try to view a large thread, the machine locks up for many > minutes. The problem seems very similar to these posts. > > https://notmuchmail.org/pipermail/notmuch/2013/014811.html > https://notmuchmail.org/pipermail/notmuch/2015/020379.html > > I tried turning off html rendering by setting mm-text-html-renderer to > nil. That helped, but it is still taking at least 10 minutes to render > a thread. I killed it when I ran out of patience. > > The thread has 231 messages, and running > > notmuch show thread:000000000000d637 | wc -l > > shows that it is 46918 lines long. Running that on the command line is > fast, taking 0.123 seconds. As a comparison, I tried opening the thread > with astroid. It was not instantaneous, but it only took about 3 > seconds. > > I am guessing that the emacs mode is trying to process the result. I > can work around this a bit by opening individual messages with "C-u RET" > instead of "RET". But then I lose context. > > Is there anything else I can do to make this work? Do things improve if you set notmuch-show-insert-text/plain-hook to nil? Can you share the messages in the thread? dme. -- Sorry I'm not home right now, I'm walking into spiderwebs.