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 DC44A6DE0204 for ; Tue, 22 Jan 2019 10:35:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.201 X-Spam-Level: X-Spam-Status: No, score=-0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-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 nZp1ZQnIP2Cz for ; Tue, 22 Jan 2019 10:35:29 -0800 (PST) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by arlo.cworth.org (Postfix) with ESMTPS id 3C3676DE01DD for ; Tue, 22 Jan 2019 10:35:29 -0800 (PST) Received: by mail-qt1-f172.google.com with SMTP id v11so28819322qtc.2 for ; Tue, 22 Jan 2019 10:35:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=w8eZAYuNTnr3TFDH7dZpgyUz4Ry2ObO9SnVXpY6I12g=; b=PwSYSi49N52fw26wHsigvuwHV4fUG6A6+gRJMPhj4l/ILUjqtC+Zoe21Xjfur6+cht P0VBfFiHfgHURMdk1IATkKckVn6wJLX1iJeWWMporAp0E6ArOSNjhy0yXENx1NW50eJ4 Dk7YnTHnuvCbHhoHKRhZBsrOZjjWOK3KvKnaAoHmXpcu8R4M4dD0C2AKKKqdiORQMvYm +zo365RreQra52h70Asefk63T9cIFkM3DhKPqy948OiMZN579aNzp6fbUmboaC4g1Je6 N7EYrpd6QPu/nR2rgxybVJdmuPVMs3Vis5VNyPpvTbHypAClQGjx/qMlAcc4380Rlsuq huNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=w8eZAYuNTnr3TFDH7dZpgyUz4Ry2ObO9SnVXpY6I12g=; b=a7jfPVkSX2+zpNLYzUii+E8DKJdpqLcN93Ar5FohX6Pz2mXKcGSpKnuAkF51SqlyZy BvCT5wuuu4GIbj02lvm4tcObc8qZRXaXLwWsluU9bfYzdGHRH+tauwJSRmQSZstKC39L Op10LzfL83vTD94bXds1FC7hGRUsH21dKxRiEIQEc2XwM3ESf6OlrCBxt9iW10ppr+Ed C8djvcKXNIt+zHzuJzipL6HfHlBeqK18TL5fYpKT0fgQOgjD1I+2s9KNRi1O4OH5aVEu tdNO0fixfHtj1fBZvADnN8FiKxE38ZutJ8bACPZg8GAm4eO38GYB0oJNmIidLLsUWpA6 8x9w== X-Gm-Message-State: AJcUukdbAVPnNpxeSvMDhFBrbHjkaBQq3wMRDee3qeeiCNqCfPDKpJ+f 8HhGC//o00sCuGy2/QX/PwY= X-Google-Smtp-Source: ALg8bN7h1Qst4pnzkcapXG6Ug54hTGwMfLCKrIMKD7mWW07LifnswKMJO0J2beo7/4tZlIZlF+jItg== X-Received: by 2002:aed:2d66:: with SMTP id h93mr31864034qtd.130.1548182127239; Tue, 22 Jan 2019 10:35:27 -0800 (PST) Received: from localhost ([177.104.48.5]) by smtp.gmail.com with ESMTPSA id k22sm52758478qtm.73.2019.01.22.10.35.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Jan 2019 10:35:26 -0800 (PST) From: Emilio Francesquini To: Brian Sniffen Cc: notmuch@notmuchmail.org Subject: Re: emacs slow with large threads In-Reply-To: References: <87fttpy0n5.fsf@mechane.wlandry.net> <878szh8q1j.fsf@cgc-instruments.com> <87munwabxc.fsf@mechane.wlandry.net> <87tvi26zh3.fsf@cgc-instruments.com> Date: Tue, 22 Jan 2019 16:35:16 -0200 Message-ID: <877eewpml7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 22 Jan 2019 18:35:31 -0000 You are absolutely right. It does become buffer local. Yet setting it to nil changes the behavior of new windows on notmuch-show-mode. I'm at a loss why... :) Maybe because I set it inside my .emacs? I need to study a bit more of elisp... Anyway, my previous message was actually incomplete. This change alone accounted only for a marginal improvement in performance. I restored my old .emacs from git and realized that the real culprit was fci-mode ( fill-column-indicator package) *even if it was not enabled on the message buffer*. Removing the package did the trick. For a thread with ~70 messages it took ~20 seconds against less than 1 without the package. On Tue, Jan 22 2019, Brian Sniffen wrote: > I think that becomes buffer local when set. Are you sure it me a differen= ce? > > --=20 > Brian Sniffen > >> On Jan 21, 2019, at 7:39 AM, Emilio Francesquini wrote: >>=20 >> Hello there, >>=20 >> I recently ran into the same (slowness) problem when viewing long thread= s. >> After some profiling I found out that disabling indentation did the tric= k for me. In my case it went from unusable (>5 minutes) to ~3 seconds for l= arge threads. >>=20 >> (setq notmuch-show-indent-content nil) >>=20 >> Hope it helps. >>=20 >>> On Mon, Jan 21, 2019 at 9:07 AM Dan =C4=8Cerm=C3=A1k wrote: >>> "Landry, Walter" writes: >>>=20 >>> > Dan =C4=8Cerm=C3=A1k writes: >>> > >>> >> Hi Landry, >>> >> >>> >> I am afraid this is a common limitation of emacs: if you start openi= ng >>> >> large files (especially with long lines) it becomes very slow. >>> >> >>> >> A viable workaround is to open the offending thread in the tree view >>> >> (bound to 'z' by default) and then only view individual messages. >>> > >>> > Tree view works well [1]. Everything is fast, and I kind of prefer t= hat >>> > view anyway. >>> > >>> > Thanks, >>> > Walter Landry >>> > >>> > [1] I have been using notmuch for almost a year, and I did not realize >>> > that there is a separate tree view. >>>=20 >>> I have been using notmuch for about two years and iirc didn't realize >>> tree view existed until about half a year ago. Should really have read >>> the manual and all the key bindings at first. >>>=20 >>> > _______________________________________________ >>> > notmuch mailing list >>> > notmuch@notmuchmail.org >>> > https://notmuchmail.org/mailman/listinfo/notmuch >>> _______________________________________________ >>> notmuch mailing list >>> notmuch@notmuchmail.org >>> https://notmuchmail.org/mailman/listinfo/notmuch >> _______________________________________________ >> notmuch mailing list >> notmuch@notmuchmail.org >> https://notmuchmail.org/mailman/listinfo/notmuch