Skip to content

Auto-precompilation still performs excessive file system checks #2850

@DilumAluthge

Description

@DilumAluthge

Originally reported by @GunnarFarneback


In JuliaLang/julia#40890, we introduced a cache to reduce the number of excessive file system checks that were performed during calls to require as part of code loading.

However, automatic precompilation does not use that cache, which means that we are still performing excessive file system checks (e.g. calls to stat) during auto-precomp.

@GunnarFarneback was able to confirm that when auto-precomp is disabled (e.g. with export JULIA_PKG_PRECOMPILE_AUTO=false), the number of observed stat calls decreases drastically, which supports the hypothesis that auto-precomp is the culprit here.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions