From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Slow completion-at-point Date: Fri, 10 Nov 2023 18:48:37 -0800 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15390"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Juri Linkov , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 11 03:49:45 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 1r1e49-0003lK-HD for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Nov 2023 03:49:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1e3C-0002D3-CE; Fri, 10 Nov 2023 21:48:46 -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 1r1e3B-0002Co-1Z for emacs-devel@gnu.org; Fri, 10 Nov 2023 21:48:45 -0500 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r1e39-0002U9-Ez for emacs-devel@gnu.org; Fri, 10 Nov 2023 21:48:44 -0500 Original-Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1cc5fa0e4d5so24191495ad.0 for ; Fri, 10 Nov 2023 18:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1699670921; x=1700275721; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=HHoTVSsBSAPdUyFIjIgvR2WxE3Gnww1JgFnFhrISXcE=; b=fTVrEp5YoFH6Ih1E+3ASrRsDlkB/dZ4nqC8JxVsyiRIzJvne70sQ8/sukQUnezQSeu xXr9/Mqjw/7SwG3RthiyNCFmKgpuFQJ5Zh8p8rSbRrzc9WcTTBc7mxclqBX1UqL921mK g7bBKATOOtQPmy10szeRfC2RgNF8d4tSgPEDK5w7yhG2H2g07nbaN5oDAE1tfTGnHfXj +/un/zl1YSt2jvacRua6yGsf19iuFbGI0QCEvzN8Lw9c3FmUI6QehyREi18POyrTRcjr zHqTkJrLS0KGuBvJOkYkJsoThD2029sLT6hfjbrDSrUZAV9D4WN84eRncWPsQd1rIBFJ SosA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699670921; x=1700275721; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HHoTVSsBSAPdUyFIjIgvR2WxE3Gnww1JgFnFhrISXcE=; b=mY4DRpoao9RKosyXQvKGCKZj+Z9dYd1yZqgzdRk8x5slDp3hEImCwnA3HMa4DwYge5 mStxvRY8kj0IUOu2MLCMxRj8sMeMUng9ubwmrEc8lQWFvvv4AwLtjgZyBCvUKhi1g0uo nvAHcJcTXH8WxzqaVQl/PG1qx7IuOMm0rKMsGHU44tqgdUwHO7z8Egif//QQYh5ydstR 2w+Kr7BpNW+DdW3AeI0CBeVHXKaFn4vzUxDbd68nV9xdKA5I8waIZb3PagcBxOgPN1M5 NHQ5H1zwXp9IaSPK+PsH81wxYgQUsKIMI2QgprPTcIwM8Y9vmWYKFo6XNG+8QMXT2sVf Ta7A== X-Gm-Message-State: AOJu0Yy4uPXQ/mJmNi3PiTbj/1wDscgspxXrW/hAd5cBgHGYmbobEdP+ aSkhq5WYmOSfyhhPRi/9BkjmnS51Mvm3b4p9IiQvWg== X-Google-Smtp-Source: AGHT+IEzs2hfxdgKl/Fx33rm6r8BINyIaWX5NjBC0uAi4G/B0wsjd7ovcXmQSYwE4HetmwUgqHAFSg== X-Received: by 2002:a17:902:ccc3:b0:1cc:5273:2105 with SMTP id z3-20020a170902ccc300b001cc52732105mr1357129ple.47.1699670921178; Fri, 10 Nov 2023 18:48:41 -0800 (PST) Original-Received: from raman9 ([2601:646:9e02:3290:3dff:2820:f169:4103]) by smtp.gmail.com with ESMTPSA id l2-20020a170902f68200b001c611e9a5fdsm346903plg.306.2023.11.10.18.48.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 18:48:40 -0800 (PST) In-Reply-To: (Dmitry Gutov's message of "Thu, 9 Nov 2023 14:10:06 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=raman@google.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:312521 Archived-At: Dmitry Gutov writes: Not sure if you saw my message where I tracked down the culprit: The slowness in completion-at-point is triggered if Completion Auto Help: Choice: Value Menu Always visible. is set as above, it gets janky; if you go back to the default it performs normally. > 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. > --