Repository navigation
Commit 0ab79d4
Index the destination once in
`_copy_subblocks!` looped over the fusion-tree blocks of the destination and read
every nonzero block of the source with `v[f₁, f₂]`, which goes through TensorKit's
lock-protected `degeneracystructure` cache on each call: (#fusion trees) ×
(#nonzero blocks) cache hits. It now iterates the source blocks with `subblocks(v)`
and indexes a single `subblocks(tdst)` iterator by fusion-tree pair, so the
structure is looked up once per tensor. The block ranges come from per-leg
cumulative dimensions computed once, instead of a `blockedrange` per subblock.
Bump version to v0.3.20.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>_copy_subblocks!
1 parent e4ee03c commit 0ab79d4
2 files changed
Lines changed: 17 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
15 | 11 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
21 | 16 | | |
| 17 | + | |
22 | 18 | | |
23 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments