[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Subprojects in project.el
From: |
João Távora |
Subject: |
Re: Subprojects in project.el |
Date: |
Fri, 25 Nov 2022 20:32:36 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Dmitry Gutov <dgutov@yandex.ru> writes:
>> I also wonder if some of the performance concerns may be premature. I've
>> seen references to poor performance in projects with 400k or even 100k
>> files. What is the expected/acceptable performance for projects of that
>> size? How common are projects of that size? When considering
>> performance, are we not better off focusing on the common case rather
>> than extreme cases, leaving the extremes for once we have a known
>> problem we can then focus in on?
>
> OT1H, large projects are relatively rare. OT2H, having a need for
> subprojects seems to be correlated with working on large projects.
There are medium-sized projects where sub-projects makes a lot of sense
and the performance of C-x p f project-find-file is fine for both the
super-project and the sub-project.
But it's true that the larger the project, the more likely the need for
subprojects. And it's also true, as you note, that sub-projects C-x p f
might surprisingly be less performant than in the super-project.
But IMO optinion the slowness of C-x p f in large projects isn't solved
by git ls-files in my opinion. That can only do so much. Once the
project grows large enough in files, git ls-files can be quick as
lighting, but you just won't be able to cons that ginormous list of
files in the project-files implementation. This is why it's important
to allow project-files to return a generalized completion table.
To write those tables, you will need an external tool (like "voidtool
everything" on MS Windows, or GNU locate on Linux) and the "backend
completion" style that I'm implementing with Stefan.
João
- Re: Subprojects in project.el, (continued)
- Re: Subprojects in project.el, Dmitry Gutov, 2022/11/27
- Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments), Tim Cross, 2022/11/24
- Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments), Dmitry Gutov, 2022/11/24
- Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments), Bozhidar Batsov, 2022/11/25
- Re: Subprojects in project.el, Stefan Monnier, 2022/11/25
- Re: Subprojects in project.el, Dmitry Gutov, 2022/11/25
- Re: Subprojects in project.el, Stefan Monnier, 2022/11/25
- Re: Subprojects in project.el, Dmitry Gutov, 2022/11/26
- Re: Subprojects in project.el, Stefan Monnier, 2022/11/26
- Re: Subprojects in project.el, Dmitry Gutov, 2022/11/26
- Re: Subprojects in project.el,
João Távora <=
- Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments), Tim Cross, 2022/11/28
- Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments), Dmitry Gutov, 2022/11/28
- Re: Subprojects in project.el, João Távora, 2022/11/29
- Re: Subprojects in project.el, Dmitry Gutov, 2022/11/29
- Re: Subprojects in project.el, João Távora, 2022/11/29
- Re: Subprojects in project.el, Dmitry Gutov, 2022/11/29
- Re: Subprojects in project.el, João Távora, 2022/11/29
- Re: Subprojects in project.el, Dmitry Gutov, 2022/11/29
- Re: Subprojects in project.el, João Távora, 2022/11/29
- "Backend completion style" as a first-class library. Re: Eglot, project.el, and python virtual environments, João Távora, 2022/11/22