Skip to content

Stop vendoring imports so precompile times remain sensible? #133

@oxinabox

Description

@oxinabox

On CI i have seen ExplictImports taking over 2 minutes to precompile. Which is completely unreasonable)
Locally, @KristofferC saw it take 10s (which still rather high).

A likely candidate is the vendoring of dependencies.
In particular JuliaSyntax, which is large.

# We vendor some dependencies to avoid compatibility problems. We tell ExplicitImports to ignore
# these as we don't want it to recurse into vendored dependencies.
# We also add `Vendored` to `ignore_submodules` elsewhere.
module Vendored
include(joinpath("vendored", "JuliaSyntax", "src", "JuliaSyntax.jl"))
include(joinpath("vendored", "AbstractTrees", "src", "AbstractTrees.jl"))
end

Given JuliaSyntax is a stdlib now and should be widely compatible.
Can it be changed to just use the stdlib version if the VERSION is high enough?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions