Skip to content

Pkg.precompile() needs to be moved to background task #4359

@vtjnash

Description

@vtjnash

Doing the "Alan test" today, we really need to move Pkg.precompile() to just launch a precompile task and immediately return fast. Right now, it adds a ton of latency to getting to something useful, at least half of which work is typically useless. I've always had to entirely disable it because of this problem (JULIA_PKG_PRECOMPILE_AUTO=0), but if it only ran in the background as an idle task (stopping/restarting whenever the user does any other pkg operation or precompile operation so that it can prioritize what the user actually needs), then user configuration would no longer be necessary (since we already have the pidfile locks now to avoid conflicts and so it no longer must be blocking to avoid errors).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions