From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#69703: Ispell process restarted too often Date: Tue, 12 Mar 2024 19:30:06 +0200 Organization: LINKOV.NET Message-ID: <86sf0vnysh.fsf@mail.linkov.net> References: <86y1aqh70o.fsf@mail.linkov.net> <86bk7mwlwl.fsf@gnu.org> <867cia3z7x.fsf@mail.linkov.net> <86sf0yug9z.fsf@gnu.org> <867ci7rj05.fsf@mail.linkov.net> <86le6ntsqd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 69703@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 12 18:36:00 2024 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 1rk62i-0001ua-9Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Mar 2024 18:36:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk62E-0001bT-2N; Tue, 12 Mar 2024 13:35:30 -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 1rk62C-0001bC-PD for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 13:35:28 -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 1rk62C-0007GB-2G for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 13:35:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rk62j-0001xM-JW for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 13:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Mar 2024 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69703 X-GNU-PR-Package: emacs Original-Received: via spool by 69703-submit@debbugs.gnu.org id=B69703.17102649497487 (code B ref 69703); Tue, 12 Mar 2024 17:36:01 +0000 Original-Received: (at 69703) by debbugs.gnu.org; 12 Mar 2024 17:35:49 +0000 Original-Received: from localhost ([127.0.0.1]:43720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk62W-0001wg-Lz for submit@debbugs.gnu.org; Tue, 12 Mar 2024 13:35:48 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:42033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk62U-0001wM-DY; Tue, 12 Mar 2024 13:35:47 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id AAC77240003; Tue, 12 Mar 2024 17:35:04 +0000 (UTC) In-Reply-To: <86le6ntsqd.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 12 Mar 2024 16:44:26 +0200") X-GND-Sasl: juri@linkov.net 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:281530 Archived-At: close 69703 30.0.50 thanks >> 1. Create a pool of Ispell processes. >> >> 2. Instead of killing Ispell processes >> just get the process from the pool >> by the ispell program name and its dictionary arguments. > > This assumes that the number of different personal dictionaries is > much smaller than the number of buffers under flyspell-mode. Since I > don't quite understand why you need so many personal dictionaries > (presumably for the same language?), I cannot say whether this > assumption is reasonable or scalable. In general, if we want to > support buffer-local speller processes, we could have hundreds of > speller processes running on the system, which is not very nice, I > think. I meant the case of per-project dictionaries with each project having own .hunspell file, on the assumption that a set of identifiers in the project-local dictionary is unique to each project. This implies one Isearch process for every project, but not for every buffer. > The current design is generally based on the following assumptions: > > . a speller process is mostly needed in a single buffer at a time, > the buffer where the user is typing > . a speller process needs to be restarted only if you change the > dictionary, which is done when you need to spell-check a different > language > . the number of languages for which the user needs spell-checking is > small (or even spell-checked by a single speller, if that is > Hunspell) After fixing the project-mode-line-format bug, I see no more problems when switching between projects with local dictionaries restarts the Ispell process on typing, so I'm going to close this request.