EnzymeAD / EnzymeAD/Enzyme.jl

Something invalidating `Enzyme.__init__` causes a heavy package load time penalty

Open
#776 19 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
586
Forks
108
Avg merge
1d 5h
Merged PRs (30d)
44

Description

When loading OmniPackage.jl(https://github.com/JuliaComputing/OmniPackage.jl/) a big part of its load time (around 10s) is spent compiling and running the `__init__` method in Enzyme, profile available at https://kristofferc.github.io/tracy-traces/omnipackage/.

Ideally, Enzyme would somehow protect itself against this, by either making the code in `__init__` less vulnerable to invalidations or some other way (maybe using a frozen world age).

cc @vchuravy

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.