-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
Currently we have the following cache variables (I hope I am not missing any):
TensorKit.GLOBAL_FUSIONBLOCKSTRUCTURE_CACHE
TensorKit.treetransposercache
TensorKit.treebraidercache
TensorKit.treepermutercache
TensorKit.transposecache
TensorKit.braidcacheAs well as the control flags
TensorKit.usebraidcache_abelian
TensorKit.usebraidcache_nonabelian
TensorKit.usetransposecache
TensorKit.usetreetransposercache
TensorKit.usetreebraidercache
TensorKit.usetreepermutercacheand
abstract type CacheStyle end
struct NoCache <: CacheStyle end
struct TaskLocalCache{D<:AbstractDict} <: CacheStyle end
struct GlobalLRUCache <: CacheStyle end
function CacheStyle(I::Type{<:Sector})
return GlobalLRUCache()
end
fusionblockstructure(W::HomSpace) = fusionblockstructure(W, CacheStyle(sectortype(W)))for the fusion blockstructure caches.
We should probably make this a bit more uniform. Importantly, we should disable or empty caches while running the tests, as they in the end collect close to a gigabyte of cached data, with probably only negative effects on the test performance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels