You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first tensor operation in a Julia session — a contraction, an index manipulation, or a factorization — incurs a significant compilation latency (time-to-first-execution, TTFX).
4
+
To mitigate this, TensorKit ships a precompilation workload that is **enabled by default**:
5
+
it runs a small set of representative index manipulations, contractions and factorizations for the `Trivial`, `Z2Irrep`, `SU2Irrep` and `FermionParity` symmetries over `Float64` and `ComplexF64`.
6
+
7
+
Because the numerically-heavy kernels are mostly *sector-agnostic* (they depend only on the element type, the arity, and `sectorscalartype`),
8
+
this workload also speeds up the first operation on symmetries that are *not* in the workload — including user-defined ones.
9
+
10
+
The workload can be tuned or disabled through [Preferences](https://github.com/JuliaPackaging/Preferences.jl):
11
+
12
+
```julia
13
+
using TensorKit, Preferences, PrecompileTools
14
+
# disable the workload entirely (fastest precompilation, no TTFX benefit)
0 commit comments