GNU bug report logs - #77566
[PATCH] Add option for automatically delete non-existent projects.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Sat, 5 Apr 2025 23:52:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: 77566 <at> debbugs.gnu.org, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: bug#77566: [PATCH] Add option for automatically delete non-existent projects.
Date: Tue, 08 Apr 2025 22:23:29 -0600
[Message part 1 (text/plain, inline)]
Elijah Gabe Pérez <eg642616 <at> gmail.com> writes:

> Dmitry Gutov <dmitry <at> gutov.dev> writes:
>
>  On 06/04/2025 03:29, Sean Whitton wrote:
>  > Thanks, though why do this only when switching projects?
>  > Why not do it proactively whenever fetching the list of projects?
>  > Performance concerns?
>
>  I'm concerned about performance, yes. With my SSD, it takes about 4ms to 
>  "clean up" ~70 projects. The number could be higher, and the hard drive 
>  could be spinning media.
>
> Yeah, that is why i originally added it only when switching projects, projectile does the same.
>
>  So could someone point out what will we get by proactively cleaning up 
>  the list, rather than doing that only when a project is being prompted for?
>
> Maybe for ensure that the zombies were removed?
>
> For example, packages that use project--list for read the projects.
>
> Instead what about purge it once after emacs startup?

Something like this patch(?), it now clean up when
project-prompt-project-name or project-prompt-project-dir are being
called and after project--list was initialized:

[0001-Add-option-for-automatically-delete-non-existent-pro.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

This bug report was last modified 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.