From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: New feature in project.el: Remembering the previously used projects Date: Sat, 30 May 2020 02:31:06 +0300 Message-ID: <07d9769f-6618-f886-62ed-4c8d39caee56@yandex.ru> References: <6f0f6cc9-52f4-8383-9827-ead54e898472@yandex.ru> <87h7vy9wrv.fsf@gmail.com> <81be7027-4079-0de6-b4dc-d669cd4c6f71@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="75880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: =?UTF-8?Q?Simen_Heggest=c3=b8yl?= , emacs-devel To: =?UTF-8?Q?K=c3=a9vin_Le_Gouguec?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 30 01:32:04 2020 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 1jeoTs-000JfL-HJ for ged-emacs-devel@m.gmane-mx.org; Sat, 30 May 2020 01:32:04 +0200 Original-Received: from localhost ([::1]:36012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeoTr-00012D-IJ for ged-emacs-devel@m.gmane-mx.org; Fri, 29 May 2020 19:32:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeoT1-0000GK-4X for emacs-devel@gnu.org; Fri, 29 May 2020 19:31:11 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:34227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeoT0-00067h-6V for emacs-devel@gnu.org; Fri, 29 May 2020 19:31:10 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id r7so5844559wro.1 for ; Fri, 29 May 2020 16:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rwo+HfWMQCqKrnD5oor+psD//lOXaGjRllwzx0vdmnE=; b=XQPe27TDUQ5sCC9AV/Kuowgxe1Jc3XE+zqiWxE3DFK5WHnAN6HZgBfUFinDwgEJ6rf 7eJgjQIwVZCHCej7BYNfpiw8o+G/NZhh7/5q3RLQNcmZnkzoiLe0PGl/7NATnKu4MOA7 d6Hv5oQHy8KP0bcNVh/DaG0U4sEXMbu1ZAEo+8tLXdnhvB/0e9CF4Ecd2yD5JUT0smKm 81ZGfAtjo+whPiRsiHPKyI1fb30JhYLqKfLAYneOOQsNQN3HVXEfRxxJ/MTDYT8fb3zL sQId6bPS/HjQLDxHkG+DtmaqKyraIcDXgVjt+4mAnvwc0B6W9CwAE0gq57VzcnxnEVG7 7H8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rwo+HfWMQCqKrnD5oor+psD//lOXaGjRllwzx0vdmnE=; b=pVNN6AGCilurDwLev8BvcgPsVbLRFmEH0wt2xk5TTAIupxJsFpCwz7TPm4GSkTRStw xMJWjAsfo61khBWPbSW1GwOLANjcDRuMEroIEwVkNGoASsm/F+2KVI2m3RT2BxhXWZLX TF0th7nmlaYdMLe+oI/BmWeamGKTSgFIE8ZrkUYKiZdmeni6UMjXVFGaHV4a5sM2ACxh YGLh3RZf4hnc9FCcubLEUWEEA/qtDZgHFpgxQYp5sibLQvXTgKNHIbGNkD4fCjPqV0sS l5Ta1Pm7m2uFiVL/sViR56pNILf3JmemSpNkF5AWBta3WSjEK6sR2hi4Ya3yxisenPXV 1rSg== X-Gm-Message-State: AOAM532cSQD9Voqi/BhISDWt5llveyp2TaaMA/IzeXWpG8SG9dSCG1WV V5mS1LMqYfeBo1tGBV06ICK83D0m X-Google-Smtp-Source: ABdhPJzMn4I01cqGXOIlZxG2zqeM0SUd15+dZ3eEN+sZcAOyRRjjY8meaNVhpuN/oW/1XXTL+oUEfw== X-Received: by 2002:a5d:60c3:: with SMTP id x3mr10398567wrt.48.1590795068258; Fri, 29 May 2020 16:31:08 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id c6sm11631912wro.92.2020.05.29.16.31.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 May 2020 16:31:07 -0700 (PDT) In-Reply-To: <81be7027-4079-0de6-b4dc-d669cd4c6f71@yandex.ru> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:251631 Archived-At: On 30.05.2020 02:22, Dmitry Gutov wrote: > First thought: you can cache it based it the value of default-directory. > Which should cut down on these calls (which trigger directory > traversals, etc) dramatically, and should be an improvement either way. Although... project-try-vc already performs caching based on the current directory. Which might be enough for a lot of scenarios.