From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Slow completion-at-point Date: Thu, 9 Nov 2023 14:10:06 +0200 Message-ID: References: <25929.50004.710119.599023@google.com> <868r7af3v6.fsf@mail.linkov.net> <25930.31126.454503.607723@google.com> <868r78bsnx.fsf@mail.linkov.net> <25931.49899.219679.933329@google.com> <25932.1952.158726.658192@google.com> <86a5rne6x9.fsf_-_@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32099"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: emacs-devel@gnu.org To: Juri Linkov , "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 09 13:11:12 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 1r13sN-00088G-6O for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Nov 2023 13:11:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r13rd-0002Jt-JG; Thu, 09 Nov 2023 07:10:27 -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 1r13rb-0002JT-Gb for emacs-devel@gnu.org; Thu, 09 Nov 2023 07:10:23 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r13rS-0004DA-9T for emacs-devel@gnu.org; Thu, 09 Nov 2023 07:10:23 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 9C5E15C035B; Thu, 9 Nov 2023 07:10:11 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 09 Nov 2023 07:10:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1699531811; x=1699618211; bh=dMI498JIJR1J/xsCff2VyBMkhs0m8cDMYZp R1AkO3I0=; b=Q9WAMd9eMFsfJSAzNKK+R827zAwWm9Vl/noursloRpVublLwBXr pKiUaJiiKk8ZjWOiNtuZj2f49OP3/WON658aDnCb2Xb4HuPpoh636AoVKxeh3Uxr vkkETCaq/Ac30DU+klmjMJTj9pdrJarvoGIxeEGuzElFWJ8H084SRiaM8nVcnzcz 2K071MfBgYMaeX4hSomIlDWkSszQ3ddj5q+8YmIYXGf9avCXncF5AOU3ufpIEIFT GyRwXz5VRiuixFq9OH1aWj094AfTHY1Ch4BT9tjJrQZfRdIwKc9TrhM461TgfsUa oFtIFTes4ZMrPDsTAAe0UVIJTBjtatDzMag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1699531811; x=1699618211; bh=dMI498JIJR1J/xsCff2VyBMkhs0m8cDMYZp R1AkO3I0=; b=i4KRDO2y1VxIAGoiwi4qaejx7T93w7RDGC11ExIJGvUzuGit1zA gem546hRAbjD00Fx82wHSImeOWgu/p1AADGtAZzg1cTSo+nLkoCw9ySpugEBdAOp zpELT5vXT9ZYsH6LdJ5DO4HULVMUgbfVuj88HFRgtiE6+hKTcNjTHr/IyhiphRPD ITv33sf9Jk0MNgfMndKhzPCCB0mxqhUeMANR+72R5a9F7Veat+AU5zN3apRsbkS9 BFGHkLDF53UrMc20sXObSufp/PxK/nwIGhEnSmBl6w3BU5C5kJILiit/ospXMlmf Wc8wQfh2LhlRKJcAVrXEIbDLyEi8LtnnQGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Nov 2023 07:10:09 -0500 (EST) Content-Language: en-US In-Reply-To: <86a5rne6x9.fsf_-_@mail.linkov.net> Received-SPF: pass client-ip=66.111.4.25; envelope-from=dmitry@gutov.dev; helo=out1-smtp.messagingengine.com X-Spam_score_int: -60 X-Spam_score: -6.1 X-Spam_bar: ------ X-Spam_report: (-6.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.265, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:312400 Archived-At: On 09/11/2023 09:22, Juri Linkov wrote: >> Here is some timing information for this issue: >> >> I added the following around advice fragment to completion-at-point debug: >> >> (let ((start (current-time))) >> ad-do-it >> (message "<%.4f %d gcs %.4f>" >> (float-time (time-subtract (current-time) start)) >> gcs-done gc-elapsed)) >> >> Then I went to a shell buffer, and from my home directory (it contains >> a subdir text) typed >> >> cd te >> >> Messages buffer shows the following: >> >> ~/ >> Making completion list... >> Sole completion >> <2.0219 14 gcs 1.2927> > Please try to get benchmark numbers after customizing the recently added > 'completion-lazy-hilit'. completion-lazy-hilit is not a user option. It's a defvar, intended for completion frontends to opt into deferred highlighting performed by completions styles. IOW, whenever each completion UI is updated (that uses completion styles -- that is, calls completion-all-completions), all its users will see the benefits.