From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#31853: 27.0.50; binding case-fold-search is slow when there are many buffers Date: Sat, 16 Jun 2018 00:39:00 -0700 Message-ID: References: <83h8m31b7j.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1529134687 22551 195.159.176.226 (16 Jun 2018 07:38:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 07:38:07 +0000 (UTC) Cc: 31853@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 09:38:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fU5mc-0005fG-Rp for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2018 09:38:03 +0200 Original-Received: from localhost ([::1]:50553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fU5oi-0005Id-Fa for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2018 03:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fU5ob-0005IL-Bx for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 03:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fU5oY-0007Me-8C for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 03:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fU5oY-0007LG-4M for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 03:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fU5oX-0002Tw-Km for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 03:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jun 2018 07:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31853 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31853-submit@debbugs.gnu.org id=B31853.15291347589483 (code B ref 31853); Sat, 16 Jun 2018 07:40:01 +0000 Original-Received: (at 31853) by debbugs.gnu.org; 16 Jun 2018 07:39:18 +0000 Original-Received: from localhost ([127.0.0.1]:50911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fU5nq-0002Ss-7k for submit@debbugs.gnu.org; Sat, 16 Jun 2018 03:39:18 -0400 Original-Received: from mail-qk0-f181.google.com ([209.85.220.181]:43773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fU5np-0002Sf-Da for 31853@debbugs.gnu.org; Sat, 16 Jun 2018 03:39:17 -0400 Original-Received: by mail-qk0-f181.google.com with SMTP id g126-v6so6903817qke.10 for <31853@debbugs.gnu.org>; Sat, 16 Jun 2018 00:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vf+7orxK37dzTBQR83R4GfzayEbbMskAOyfqpCNB1mE=; b=DOQAgOQMQDzzbIGPYSmoMu8eRIkIcA/MWbP9ArFXK9TKTS1I8ucyPhWCVnMTR+vnrE rGEg9mHcrSUDcmgk/P+8P6RjxZk+lfXP+4yShNTf2Cghelz1V53JVIyo3WSa6S6ds54a uHVjmr/JL6whGcCiiyJj3bGIy81fPsMChLkXTCdjHGZ1SJmZe3jdHoJ7MmXNY7NkvHHi bPRETenD8Wd/IWFilmU6xTle54qbWNbbjw7MY8MZFMta9g1yyjeoVs78zfRF2DgkvkZM BMxJCuIPncPcx7tyUgNsyQ/Uw1T0x9nskt25J9bmL0LY8L55LvC0TAEU7UhqkgTmNBMW 6THg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vf+7orxK37dzTBQR83R4GfzayEbbMskAOyfqpCNB1mE=; b=s0X9d37wziuBbDlaPYJzuB/svPjhsPEikyBnP04T6f+hw9hdIivS8tV379ImTS2xX3 Xm6oGmXFgWHHqXCz/UAFtZ3shs9uX3rjLA0itjCzrrlqdki3YUviEUAQkb8uuFAX8xJw jpjaaCZ6lx8e4pRiO+qkwjKbxBe0h4AXaW4beBl8vFYzQBDNNI85eWkumz08JgMq06g3 3Aith5JBhLZCmXb79BwU7E3IhXcic9m0nnBlxfiko6CLxQBLYTGGFGndG4AtfH+XghlK 3QQPVdn5pJ8RgLchz7hlJD4JCoN015bdjodETWYfWd2hbqWgnhqyzt0HM4BIlSmxjMgS AhaQ== X-Gm-Message-State: APt69E1yrCIHPa0FQ+xPE4+HN7dHxdTkL9YTyqt2wHT4KYoGV9ByqSiU wPrsMTL6KcEnsEJIuW6XQTiQZ75D1FCWXGzk0hxCJw== X-Google-Smtp-Source: ADUXVKLq7YbBi/+V28HsLtwF6WBYiR59pcQceAMLAGa2oNY5dEWse17Pf5/ocImoHyWuqDDU/51kHrZlIAlcg6S7dSs= X-Received: by 2002:a37:5607:: with SMTP id k7-v6mr3918824qkb.342.1529134751720; Sat, 16 Jun 2018 00:39:11 -0700 (PDT) In-Reply-To: <83h8m31b7j.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147483 Archived-At: On Fri, Jun 15, 2018 at 11:45 PM Eli Zaretskii wrote: > It is related to that bug only if you have a lot of dead buffers. The > URL pointed out by Noam includes a patch that would allow you to count > dead buffers you have; can you do that? I've got it compiled in now and will report back when it repros as badly as it did originally. > In a session that has 291 buffers, I get 2.8 microseconds, whereas in > fresh "emacs -Q", I get 1.5 microseconds. This is 3 orders of > magnitude faster than what you get, and the difference between a large > session and a new one is much smaller. I think I missed a zero on my original fresh emacs report. The report of 1ms per for a long running emacs was correct though. These should be accurate: On emacs -Q I get 2 microseconds. On a newly launched emacs w/ my config I get 3 microseconds with 9 buffers and 1 killed buffer. On an emacs I've been running for a bit I get 40 microseconds with 71 buffers and 237 killed buffers.