[ITensors] [ENHANCEMENT] Try using ValSplit
for op
and related functions
#1196
Labels
enhancement
New feature or request
ValSplit
for op
and related functions
#1196
Currently we rely on dynamic dispatch to dispatch to functions like
op
, since we convert runtime objects (tags, strings, etc.) into types likeOpName
to be used by dispatch. I just noticed a neat package ValSplit.jl that optimizes that code pattern by internally rewriting that kind of dispatch into a single method that uses if statements, and therefore avoids dynamic dispatch. Would be neat to see if that improves performance anywhere (though I've only seen a few examples where lookups toop
showed any performance issues, and those cases could be optimized away with memoization).The text was updated successfully, but these errors were encountered: