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
{{ message }}
Repository navigation
Commit 49e7b01
Browse filesBrowse the repository at this point in the historyBrowse files
Cached.jl was registered as MemoizationKit.jl under QuantumKitHub; depend on
the registered release and drop the `[sources]` entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/src/man/fusiontrees.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,30 +260,30 @@ This is simply given by
260
260
261
261
The `braid` and `permute` routines for double fusion trees will be the main access point for corresponding manipulations on tensors.
262
262
As a consequence, results from these routines are memoized via a `@cached` mechanism.
263
-
The caching strategy is controlled by `Cached.CacheStyle`: for `FusionStyle(I) isa UniqueFusion` no caching is used (`NoCache()`), since the result is a single cheap scalar coefficient; for `MultipleFusion` or `GenericFusion` sectors, `GlobalCache()` uses Cached.jl's configured container (ClockCache by default), as computing the transformation matrix can be expensive and results are reused frequently.
263
+
The caching strategy is controlled by `MemoizationKit.CacheStyle`: for `FusionStyle(I) isa UniqueFusion` no caching is used (`NoCache()`), since the result is a single cheap scalar coefficient; for `MultipleFusion` or `GenericFusion` sectors, `GlobalCache()` uses MemoizationKit.jl's configured container (ClockCache by default), as computing the transformation matrix can be expensive and results are reused frequently.
264
264
265
-
TensorKit also uses Cached.jl for sector structures, degeneracy structures and fusion tree transformers.
266
-
Sector structures share cache entries across spaces with the same sectors, even if their degeneracy dimensions differ, through `Cached.cachekey`.
267
-
The Cached APIs can inspect, resize and configure these caches:
265
+
TensorKit also uses MemoizationKit.jl for sector structures, degeneracy structures and fusion tree transformers.
266
+
Sector structures share cache entries across spaces with the same sectors, even if their degeneracy dimensions differ, through `MemoizationKit.cachekey`.
267
+
The MemoizationKit APIs can inspect, resize and configure these caches:
Preferences are saved in `LocalPreferences.toml` and apply after restarting Julia; a runtime size change applies immediately.
279
-
`Cached.uncached(f, args...)` computes a result without consulting or filling the cache.
280
-
TensorKit supplies efficient `Cached.cachesize` methods for its structure, fusion-tree and transformer results.
279
+
`MemoizationKit.uncached(f, args...)` computes a result without consulting or filling the cache.
280
+
TensorKit supplies efficient `MemoizationKit.cachesize` methods for its structure, fusion-tree and transformer results.
281
281
These estimate bytes from the fixed-size fields and live array buffers; matrix coefficients and inline sector values are not traversed individually.
282
282
Reference-containing scalar or sector arrays fall back to `Base.summarysize`.
283
283
Buffers shared between cache entries count toward each entry, while identical source and destination structure buffers within a transformer count once.
284
284
The budget excludes cache keys, container and allocation overhead, and spare array capacity; it is a cached-value estimate rather than a limit on total process memory.
285
-
Optional Cached features, such as the Tachikoma dashboard and SQLite disk caching, remain available through Cached's extensions.
286
-
Disk caching requires loading SQLite and defining `Cached.DiskCacheStyle` for the desired function; it is disabled by default, and `empty_globalcaches!()` clears only in-memory caches.
285
+
Optional MemoizationKit features, such as the Tachikoma dashboard and SQLite disk caching, remain available through MemoizationKit's extensions.
286
+
Disk caching requires loading SQLite and defining `MemoizationKit.DiskCacheStyle` for the desired function; it is disabled by default, and `empty_globalcaches!()` clears only in-memory caches.
287
287
288
288
This caching implies that potential inefficiencies in the fusion tree manipulations (which we nonetheless try to avoid) will not seriously affect performance of tensor manipulations.
Copy file name to clipboardExpand all lines: docs/src/man/profiling.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# [Profiling and timers](@id s_profiling)
2
2
3
3
TensorKit's index manipulations, tensor contractions and factorizations are instrumented with [TimerOutputs.jl](https://github.com/KristofferC/TimerOutputs.jl) sections that are compiled away by default, so they incur no runtime cost.
4
-
Enabling TensorKit's timers also enables Cached.jl's cache lookup and computation timers, recorded in the same timer tree and categories.
4
+
Enabling TensorKit's timers also enables MemoizationKit.jl's cache lookup and computation timers, recorded in the same timer tree and categories.
5
5
They can be enabled to obtain a detailed breakdown of where time is spent inside these operations, in particular the split between the different kinds of work involved in manipulating symmetric tensors:
0 commit comments