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 was Re: Navigating completions from minibuffer Date: Thu, 9 Nov 2023 07:41:04 -0800 Message-ID: <25932.64912.453754.774973@retriever.mtv.corp.google.com> 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> <7f5345e3-5977-f864-f6b2-c247aca50f33@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4692"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, emacs-devel@gnu.org, juri@linkov.net To: dmitry@gutov.dev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 09 16:41:30 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 1r179u-000164-Fy for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Nov 2023 16:41:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r179b-0006nm-Qf; Thu, 09 Nov 2023 10:41:11 -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 1r179a-0006nW-18 for emacs-devel@gnu.org; Thu, 09 Nov 2023 10:41:10 -0500 Original-Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r179Y-0005Jc-IZ for emacs-devel@gnu.org; Thu, 09 Nov 2023 10:41:09 -0500 Original-Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6c34e87b571so947940b3a.3 for ; Thu, 09 Nov 2023 07:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1699544467; x=1700149267; darn=gnu.org; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=3E6wyoztOLVBRd+5mVQrqJSLBTnKm8sl78Uez1rXQoY=; b=Y2JeXzipI3xwOcL5JHr5Ag5RojNDfUq9gG1D4wXeaBYSv8a2wSPqUnNNtJsVGT2/z+ XQnAxlMG+cLw+Sqs0bp7oXVvayXV1HlgnJD2wx1Sie2VY+yGxsbDEAxD5h1haN4ta5BD ptN79Sh8wxWPlXPosCrjZCXZdK8SkQTDERpp1IS/3xUjpPDf/NyJp4lVnoEakhDxr4q/ /Z9luXucPwwA1eLR+BAWLCRAj8pY3825zTuIgjBGvRSnjTbM00xvynBGA6/uiBfmU6Ja wD/6MKYXawjX6oGs2xiF8TqijCrpX6Bo8AzQChAUgv1eT+eMUKb6ziUkA/sBUvE5crHs mqGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699544467; x=1700149267; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=3E6wyoztOLVBRd+5mVQrqJSLBTnKm8sl78Uez1rXQoY=; b=iB8yrmLEdVN1zTEiIWFm1ynM1VTdS0Q8PTQBOIM6h1iT76yfbfOWjdmgFg7Wcg6Xb8 +TyHFvAptRXJqqWPR75TCkP6UJFmzpsikEACbBsOWau5q4jsy53+YrIuVs6e0b+kx7nn 75KgE+uR1sw0A6oUMqTAISPRLESuVlS6yFhx5fFhMt/CD8cfSqrvUXNeoHJk9xrKpyWk r9DaZlXUZKBfOS2CnRF8aBUq1bFQQPoAQcJX76MVeuuoTyk1WcRFMKEWjioQuaL7x01a KKDycM/QrkO5sg4Dmm/tSE455VUHaFZUQ69L1Vx5Czo8fIiyXGJ7zFCahQtFsJ+q+dfM 5cow== X-Gm-Message-State: AOJu0Yz7utec5H5flTg1S5Dy1+YH8N9cIKVSETOotXVQKLdzuolPzVrc Mj0XTkHisotijt1Sidwt6st77g== X-Google-Smtp-Source: AGHT+IE89+dtakkliFPQ++NGWJQRBZFxHt8o52gep5vwOGeMhEpnXCNy1e2gU7UynrlkvRk6R8vVhw== X-Received: by 2002:a05:6a00:98f:b0:6be:62e:d5a8 with SMTP id u15-20020a056a00098f00b006be062ed5a8mr5582444pfg.0.1699544466427; Thu, 09 Nov 2023 07:41:06 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([2620:15c:b5:2:d239:6e00:579c:1334]) by smtp.gmail.com with ESMTPSA id r18-20020aa78452000000b006c34768a37fsm10871202pfn.114.2023.11.09.07.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 07:41:05 -0800 (PST) In-Reply-To: <7f5345e3-5977-f864-f6b2-c247aca50f33@gutov.dev> X-Mailer: VM 8.1.1 under 30.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=raman@google.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -208 X-Spam_score: -20.9 X-Spam_bar: -------------------- X-Spam_report: (-20.9 / 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, NICE_REPLY_A=-3.265, 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:312424 Archived-At: when the problem was present, it was slow everywhere, though shell is where I noticed it first. See other reply -- the problem disappeared last night as I was twiddling various completion related custom knobs; sadly I dont know when exactly it disappeared. Dmitry Gutov writes: > On 09/11/2023 00:11, T.V Raman 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> > > Is completion-at-point slow for you in shell buffers in particular, or > everywhere else too? E.g. completion in 'C-h f'. > > There was a change last week (dfffb91a70532ac002), but it was supposed > to make completion faster. And in your tests, it did (at least for > icomplete, which knows how to take advantage of the optimization). --