-
-
Notifications
You must be signed in to change notification settings - Fork 114
Please prevent from scanning hidden directories #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
Comments
earlephilhower
added a commit
to earlephilhower/arduino-builder
that referenced
this issue
Jul 1, 2019
When checking for updated core files, don't scan inside UNIX hidden directories like .git. Scanning inside a GIT tree for a large project with many branches could take many minutes of runtime and multiple GB of RAM. This was seen in the Arduino core for the ESP8266, but is probably also an issue for other core development teams. Fixes arduino#327
earlephilhower
added a commit
to earlephilhower/arduino-builder
that referenced
this issue
Jul 1, 2019
When checking for updated core files, don't scan inside UNIX hidden directories like .git. Scanning inside a GIT tree for a large project with many branches could take many minutes of runtime and multiple GB of RAM. This was seen in the Arduino core for the ESP8266, but is probably also an issue for other core development teams. Fixes arduino#327 Signed-off-by: Earle F. Philhower, III <[email protected]>
earlephilhower
added a commit
to earlephilhower/arduino-builder
that referenced
this issue
Jul 1, 2019
When checking for updated core files, don't scan inside UNIX hidden directories like .git. Scanning inside a GIT tree for a large project with many branches could take many minutes of runtime and multiple GB of RAM. This was seen in the Arduino core for the ESP8266, but is probably also an issue for other core development teams. Fixes arduino#327 Signed-off-by: Earle F. Philhower, III <[email protected]>
earlephilhower
added a commit
to earlephilhower/arduino-builder
that referenced
this issue
Jul 1, 2019
When checking for updated core files, don't scan inside UNIX hidden directories like .git. Scanning inside a GIT tree for a large project with many branches could take many minutes of runtime and multiple GB of RAM. This was seen in the Arduino core for the ESP8266, but is probably also an issue for other core development teams. Fixes arduino#327 Signed-off-by: Earle F. Philhower, III <[email protected]>
earlephilhower
added a commit
to earlephilhower/arduino-cli
that referenced
this issue
Aug 28, 2019
Port of arduino/arduino-builder#328 When checking for updated core files, don't scan inside UNIX hidden directories like .git. Scanning inside a GIT tree for a large project with many branches could take many minutes of runtime and multiple GB of RAM. This was seen in the Arduino core for the ESP8266, but is probably also an issue for other core development teams. Fixes arduino/arduino-builder#327 Signed-off-by: Earle F. Philhower, III <[email protected]>
earlephilhower
added a commit
to earlephilhower/arduino-cli
that referenced
this issue
Aug 30, 2019
Arduino-builder scans the core to determine if core config files have changed between invocations. Unfortunately, it goes into SCCS dirs such as .git (which can have 100,000+ files). This is wasted effort and can cause massive amounts of runtime and memory use when core developers are building in their git clones. Use a new function already added by the builder/utils.go to determine if a file or folder is SCCS, and if so skip it in the rebuild-required check. Fixes arduino/arduino-builder#327 Signed-off-by: Earle F. Philhower, III <[email protected]>
rsora
pushed a commit
to arduino/arduino-cli
that referenced
this issue
Sep 5, 2019
* Don't scan hidden directories in arduino-builder Arduino-builder scans the core to determine if core config files have changed between invocations. Unfortunately, it goes into SCCS dirs such as .git (which can have 100,000+ files). This is wasted effort and can cause massive amounts of runtime and memory use when core developers are building in their git clones. Use a new function already added by the builder/utils.go to determine if a file or folder is SCCS, and if so skip it in the rebuild-required check. Fixes arduino/arduino-builder#327 Signed-off-by: Earle F. Philhower, III <[email protected]> * Add comment to force rebuild
rsora
pushed a commit
to arduino/arduino-cli
that referenced
this issue
Sep 5, 2019
* Don't scan hidden directories in arduino-builder Arduino-builder scans the core to determine if core config files have changed between invocations. Unfortunately, it goes into SCCS dirs such as .git (which can have 100,000+ files). This is wasted effort and can cause massive amounts of runtime and memory use when core developers are building in their git clones. Use a new function already added by the builder/utils.go to determine if a file or folder is SCCS, and if so skip it in the rebuild-required check. Fixes arduino/arduino-builder#327 Signed-off-by: Earle F. Philhower, III <[email protected]> * Add comment to force rebuild
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
Hi,
I have lots of git branches in my hardware
.git/
directories (submodules too) andarduino-builder
is now losing itself for too much time in them.Details:
With
-verbose -debug-level 10
the last message isI then analysed with linux
strace
what was happening and found that all time was spent scanning my.git/
directories in my hardware directory (I have lots of testing branches and not a very fast computer).Changing permissions of the git directories solved the issue:
Changing them back to
700
made the issue appear again.FWIW, another dirty workaround is:
Is it an acceptable generic (kind-)request to prevent from scanning all directories whose names are starting with a dot
.
(''hidden'' directories under unix) (or at least.git/
) ?The text was updated successfully, but these errors were encountered: