From f647d17150c274010a2d92c3e136a0a0545db7c6 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Thu, 10 Sep 2026 19:19:56 -0400 Subject: [PATCH 1/2] Avoid allocating a String when hashing a lazy tensor Symbol has no method taking a type, so Symbol(typename(T).wrapper) fell back to rendering the type through an IOBuffer on every call. nameof gives the same discriminator as a Symbol for free. Co-Authored-By: Claude Opus 5 (1M context) --- src/lazyitensors/lazyinterface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lazyitensors/lazyinterface.jl b/src/lazyitensors/lazyinterface.jl index a76ca0fc..057e859b 100644 --- a/src/lazyitensors/lazyinterface.jl +++ b/src/lazyitensors/lazyinterface.jl @@ -117,7 +117,7 @@ function isequal_lazy(a1, a2) end end function hash_lazy(a, h::UInt64) - h = hash(Symbol(Base.typename(typeof(a)).wrapper), h) + h = hash(nameof(typeof(a)), h) # Use `_hash`, which defines a custom hash for NamedTensor. return _hash(unwrap(a), h) end From 2a27ede17903eaf718fffd9d91222b0ddbf7f4e9 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Thu, 10 Sep 2026 19:21:48 -0400 Subject: [PATCH 2/2] Bump to 0.13.14 Co-Authored-By: Claude Opus 5 (1M context) --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index b4f3ec1c..130b0588 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ITensorBase" uuid = "4795dd04-0d67-49bb-8f44-b89c448a1dc7" -version = "0.13.13" +version = "0.13.14" authors = ["ITensor developers and contributors"] [workspace]