From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Axel Forsman Newsgroups: gmane.emacs.bugs Subject: bug#65760: 29.1; eglot performance issue Date: Tue, 05 Sep 2023 16:59:57 +0000 (UTC) Message-ID: <87cyywsghg.fsf@axelf.se> References: <87il8o62dw.fsf@ya.ru> <837cp44mko.fsf@gnu.org> <835y4o4mfb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16629"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65760@debbugs.gnu.org, ivan-p-sokolov@ya.ru, glebsmirnov0708@gmail.com To: Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 05 19:01:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qdZQV-0004C2-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Sep 2023 19:01:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdZQE-00079v-Lm; Tue, 05 Sep 2023 13:01:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdZQD-00076i-L0 for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 13:01:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdZQD-0005v2-Cg for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 13:01:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdZQD-0003gL-UG for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 13:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Axel Forsman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Sep 2023 17:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65760 X-GNU-PR-Package: emacs Original-Received: via spool by 65760-submit@debbugs.gnu.org id=B65760.169393320613989 (code B ref 65760); Tue, 05 Sep 2023 17:01:01 +0000 Original-Received: (at 65760) by debbugs.gnu.org; 5 Sep 2023 17:00:06 +0000 Original-Received: from localhost ([127.0.0.1]:58710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdZPK-0003dZ-4G for submit@debbugs.gnu.org; Tue, 05 Sep 2023 13:00:06 -0400 Original-Received: from wrqvffvh.outbound-mail.sendgrid.net ([149.72.255.128]:45620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdZPH-0003cO-Ai for 65760@debbugs.gnu.org; Tue, 05 Sep 2023 13:00:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axelf.se; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=cMfNpeZlNu9r4fJPU9BKEc7EvPkTHXRgqg7FDL21C7k=; b=Y79bSweO7yth8ustD69TR+NN7RZFzaRT2HHM+Xog6hZP0tFOonIog7znNhulVT6QGxXI wCAbdpBG+Y65kqMfuWSSZxvQ2na4wVpIewx+2M2bwIeGko17dn+2AMc9ePfJXssYg9qlHw k9BTTCsVB7CY6vbZNdvOiE0edHGgWk2VhP/ryRaQwLIg6P/9ycW6pD5YAhxODsw9MNTswj L+E/RgCm1z7KMeUcCrVHjzeECpcWjGQmxEnrqH9k51lWCUIkOKrWdWI2y13Q8GS/KEYVIU N2HyaNPEPPMR8aHu6BqJr0GPwfSo9A17ivSmMwSZCyLHQwhtCcMTu3dg+hpuzfWw== Original-Received: by filterdrecv-65f68489c8-nnkmk with SMTP id filterdrecv-65f68489c8-nnkmk-1-64F75E8C-97 2023-09-05 16:59:56.981633286 +0000 UTC m=+10171438.917766369 Original-Received: from localhost (unknown) by geopod-ismtpd-canary-0 (SG) with ESMTP id n1Tv8E7mT56xPImcquR9cQ Tue, 05 Sep 2023 16:59:56.616 +0000 (UTC) In-Reply-To: <835y4o4mfb.fsf@gnu.org> X-SG-EID: a9jmprsm98cnqgHsU2O6rQhtHh4uQUltDI0sfxLQLLW0ScObgxI6amEU2a6U78W+ibx7uzcZ/VOgckerZq94SEC+f41DVtiF/pbOlVvYj0aNj57pxdBksoqu2Qz5ut/KQOFIfIs3v+LJnh5+u2mFIHnz6NdCsJ8KaPrWLm4/BKMXIXAljy3ewrX8GqW5K7lh+WmN6+9dx/mpOwDiSuws1VeNNFDFzTStUmwGPOKJSeVxvWOTRHeousKsJxQ5alHs X-Entity-ID: kO1dOy+IUnMwDrvHlPpg/w== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269383 Archived-At: I disagree with the initial decision to log all JSONRPC events by default to begin with, but irregardless, should it not be possible to fix the performance issues by having jsonrpc--log-event push raw events onto a ring, and introducing a second function that formats the raw events as strings and inserts them into a new buffer that gets displayed. That way the expensive pretty printing would be deferred to until the events are actually viewed. /Axel