From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Koch Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Fri, 17 Feb 2023 12:33:49 +0200 (EET) Message-ID: <1557187872.167775.1676630029885@office.mailbox.org> References: <1163788660.69273.1675787581764@office.mailbox.org> <87r0uo7h2w.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29083"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61350@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 17 16:24:13 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 1pT2ar-0007Me-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Feb 2023 16:24:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT2ai-0000WQ-Gd; Fri, 17 Feb 2023 10:24:04 -0500 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 1pT2ag-0000Vi-Ig for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 10:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pT2ag-0005bK-8i for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 10:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pT2af-0004zm-UK for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 10:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Koch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2023 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61350 X-GNU-PR-Package: emacs Original-Received: via spool by 61350-submit@debbugs.gnu.org id=B61350.167664739019130 (code B ref 61350); Fri, 17 Feb 2023 15:24:01 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 17 Feb 2023 15:23:10 +0000 Original-Received: from localhost ([127.0.0.1]:41034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT2Zp-0004yT-3U for submit@debbugs.gnu.org; Fri, 17 Feb 2023 10:23:10 -0500 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]:50158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSy40-0003xu-AX for 61350@debbugs.gnu.org; Fri, 17 Feb 2023 05:34:01 -0500 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PJ7TC3SLNz9sb6; Fri, 17 Feb 2023 11:33:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koch.ro; s=MBO0001; t=1676630031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7HZVEcR5CqQK+rponER0IC7YC939PUVhc8RpuLVxRuU=; b=ZE3NVYOYdo37Pjh110EW0MV7OF5lPWtOjDm73nuF64LsGzz5mpEqYVi/6PwR/3dxWvm9rR smH5doT1ErX4E/Zw0zdTCyEJwaBUnDB1DcDNtpapiT3t95G49by5LLe0IdVCO4bdh/Ou17 dJw9o/xViS5LYD50RcwJI7Z+INvvlOBRHQnqVjCmqz3oYxhybuoCeQRoq4yRr2QQ/4ToGa fKstTB7EOM3d/iQF8drNGr+GXCqOaPs+WsWWf76JCk/dYcQZO8f0XJhENel+2jOXulYXnA sfVLK3LBq8ETBwz0a/3zkPt0XSqEKTdsfXNFx6tkk19Fy+o7HaiSG9DbyaPN5A== In-Reply-To: <87r0uo7h2w.fsf@gmx.de> X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4PJ7TC3SLNz9sb6 X-Mailman-Approved-At: Fri, 17 Feb 2023 10:23:07 -0500 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:255889 Archived-At: Thanks a lot Michael for the analysis. I don't know anything about Emacs internals, but I have a healthy fear of threads and could understand that it might be a can of worms. Maybe there are ideas that could be taken from JavaScript, which also has only a single thread. As I understand, any threading problem can be translated into event driven code. Additionally, browsers now support web workers which (in theory?) should avoid locks by not sharing context with the main thread: https://developer.mozilla.org/en-US/docs/Web/API/Worker I forwarded your analysis to the GitHub issue: https://github.com/joaotavora/eglot/discussions/883#discussioncomment-5008509