From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] 5x speedup of flyspell-buffer Date: Fri, 14 Apr 2023 09:54:37 +0300 Message-ID: <83wn2feyxe.fsf@gnu.org> References: <837cug5l18.fsf@gnu.org> <83wn2g3wes.fsf@gnu.org> <833553ggl9.fsf@gnu.org> <87ildzm0dz.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13605"; mail-complaints-to="usenet@ciao.gmane.io" Cc: nospam-abuse@ilyaz.org, emacs-devel@gnu.org To: "Dr. Arne Babenhauserheide" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 14 08:55:38 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pnDLN-0003NB-OD for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Apr 2023 08:55:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnDKX-00082Z-8o; Fri, 14 Apr 2023 02:54:45 -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 1pnDKU-00082O-Qr for emacs-devel@gnu.org; Fri, 14 Apr 2023 02:54:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnDKT-0004Sf-KO; Fri, 14 Apr 2023 02:54:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+D2Lmfxf9l3PFWxzdLNvbmHY7vuBNqjdtZncsJvNH3g=; b=bxuWRajUVwRFGd6uOMMs QefoEt6h6vAQh2MIdiGvx7sXxybKyDltB7jCwjpqhl2n0LlR+62K/sWoBdCYbuaRHt0325NvnYg4z xz8Y9Ck2n5/Tv/4AzH3awNG8T7AFLE7EY2ErleV277QgG8+jo/dYiikTY32Sus8pUESjfzt9deGR2 F/Q/xsmC7z/NtLVESVkqn8ZRDZXDFFaFTZIbXVQo7sh0ubj6SLRW0IKc92lJCmTrvWH85XrIBMEeX YM7m2ivQpTt58+K32zvfOI7P9uGfkyBH7qCBP8iOtiPZf9P5odDPAkbxPH7O9b3Uuqa2bwBgZruaJ QpcI5xInSEiMfA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnDKR-0000F0-OP; Fri, 14 Apr 2023 02:54:41 -0400 In-Reply-To: <87ildzm0dz.fsf@web.de> (arne_bab@web.de) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305309 Archived-At: > From: "Dr. Arne Babenhauserheide" > Cc: Ilya Zakharevich , emacs-devel@gnu.org > Date: Fri, 14 Apr 2023 08:39:10 +0200 > > > OK, then N = 50 should do the same trick. > > Wouldn’t that then show too few messages for small buffers? There's no sense of showing messages for jobs that finish so fast. > I quite like the logarithmic message showing, because it ensures that > the user is informed of progress while avoiding a constant spew of > messages. The need for informing the user about the progress only exists when the operation takes long enough time. > The only thing I worry about is that there may at some point be too few > messages, so a maximum might be useful to ensure that there is some > progress notification at least once every few seconds. Otherwise users > could think that it stalled. How much over-engineering are we willing to put into this nit?