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: Subprojects in project.el Date: Sat, 26 Nov 2022 03:57:30 +0200 Message-ID: References: <87zgcq68zp.fsf@ericabrahamsen.net> <877czqtyfy.fsf@dfreeman.email> <87zgcml7g7.fsf@gmail.com> <2ba04533-097a-a1da-ff3f-2c9506fd488e@yandex.ru> <875yf9bbzb.fsf@gmail.com> <87wn7oa0aw.fsf@gmail.com> <7a5b76fd-fb15-8c1e-ea29-bf11f7e0d2ae@yandex.ru> <87bkoya815.fsf@gmail.com> <0024a67d-b8e5-b35c-1b22-82541a170eb3@yandex.ru> <871qptai4d.fsf_-_@gmail.com> <71addecc-373e-b1f0-f190-0ce3531626a8@yandex.ru> <50bf9e49-23f0-0966-f619-88bcf35479fa@yandex.ru> <871qpqvme6.fsf@gmail.com> <184362df-01c7-0771-28b4-a87ea52ca45e@yandex.ru> <874jumtwic.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18073"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: Stefan Monnier , Danny Freeman , Eric Abrahamsen , emacs-devel To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 26 02:58:20 2022 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 1oykSS-0004X4-Iz for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Nov 2022 02:58:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oykRm-0000N9-LW; Fri, 25 Nov 2022 20:57:38 -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 1oykRk-0000LL-Er for emacs-devel@gnu.org; Fri, 25 Nov 2022 20:57:36 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oykRi-000690-Ff for emacs-devel@gnu.org; Fri, 25 Nov 2022 20:57:36 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id o30so4641590wms.2 for ; Fri, 25 Nov 2022 17:57:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=GkD/S6oezDpVrSMin6/uEXtJjGrU95vmWGgfxQCQkrs=; b=JIvf4QN4BdhVD+kbNTc30UeE4dqSd97hDD26q4eDKsYA3EfHZtUT14UTW8gMFixZE/ pajb0CtuZfhhXA4MMb+kNN3rXbtu0gb4hWiudGRJneZvSempME9w/Lgpw/y2CJMvdmDH wRUiKUsWMaFATJNvPGTXOBqseC8JtLtfua2nY3tPDuuhjttjRNHd02EnyFKYqaw1v010 Rw0Eq1kQUomzOsFgyLHyr5Yk9I3Zarn+jcHMwuC6AxqYikstacOvhix+bk3Ne6faNk+M MnZV9J4O9D5CPnbzzVz8Sc8WkwXJXM2dUhHmzo6yYKfwLaVMxMMZVxHpScqccJOfyAEo HYvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GkD/S6oezDpVrSMin6/uEXtJjGrU95vmWGgfxQCQkrs=; b=Eyt2gp8aVlnCAk1n2i/UXcYtDyhNbaZfkNcRa5Bp/cvjR68YmWfOrHsvNQsGPKpc5m chF28F+HDNln6FDHx7AiJ6xImwWVj3uOtnkm/ZFXVJjGK/FNBBYYU4T4RGMR7hOWDogE M9W0KaGhcttz+agnH6GpMjxxdMiG6yfWwsL2y+HnGVpS5GJr+3ThNPQqMGvSupWOQ5xK Om0geA1qkGjVKrX7R9M/zvWn2whtufaHMU9La279TvLEwoJ8S5Dy9yVpwgaUYHA1NJ8N O8xpxsCg5dNG1ZsFvj10F2oKpSfsSChKiK90s4lWRE+gjJIONh3xSweArhRsfIOUQ9Ln Yzrw== X-Gm-Message-State: ANoB5plMx60dyJyPSgxtFgsje8WhGa8XbuNAmQ2431wf2glWei5mEE7+ Nb7QPMZ8/Vl+p3jOpLX7/og= X-Google-Smtp-Source: AA0mqf5UnbWadqOmUnYTjsU+yUDhaQsLs6ktFU2l04ni158t8DRKMOgjPCxa5iBNVFi4le4CQoskaA== X-Received: by 2002:a7b:ca49:0:b0:3c8:353b:2553 with SMTP id m9-20020a7bca49000000b003c8353b2553mr29637729wml.18.1669427852704; Fri, 25 Nov 2022 17:57:32 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id t2-20020a5d42c2000000b0023662d97130sm4814374wrr.20.2022.11.25.17.57.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 17:57:32 -0800 (PST) Content-Language: en-US In-Reply-To: <874jumtwic.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=raaahh@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.243, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:300541 Archived-At: On 26/11/22 02:00, João Távora wrote: > Dmitry Gutov writes: > >> Even when there are just 2 of them, it's 2x the initial delay, which >> can already be noticeable with Tramp. E.g. my ping to the "mainland" >> is around 100ms. And filesystem operations might take several >> roundtrips. > If you want to use subprojects over TRAMP and the super-project and the > sub-project are both identified by marker files files, then it's not > something we can avoid. IOW we do just as many marker-file probes as > needed: you pay for what you get. If the user wants out of the bargain, > he can customize one of the search functions to give up in TRAMP > contexts. We aren't even close to top efficiency WRT file operations now. And your idea is also based on hand-crafting project-find-functions to only contain the necessary items. As opposed to real-life scenario of Projectile just adding its function at the front. >> I don't entirely understand the algorithm you're proposing here, but >> it sounds vaguely like what I'm writing now, so you might like the >> result. > Where/when can I find this code? You and others can now find it here: https://debbugs.gnu.org/41572#186