Skip to content

Performance improvements#43

Merged
lkdvos merged 4 commits intomainfrom
ld-speedups
Feb 11, 2026
Merged

Performance improvements#43
lkdvos merged 4 commits intomainfrom
ld-speedups

Conversation

@lkdvos
Copy link
Owner

@lkdvos lkdvos commented Feb 11, 2026

Here I address an issue/regression since TensorKit v0.16.
Due to a change in upstream, we used to allocate tensors with similar, and now are using tensoralloc more consistently.
However, tensoralloc was effectively making sparse blocktensormaps dense, which is resolved in this PR.
Additionally, I took the time to more properly handle bounds checking, further reducing some of the overhead.
Finally, where the boundschecks are still happening, I avoided some allocations by specializing size to avoid some calls to dual, which allocates on spaces.

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 62.96296% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.51%. Comparing base (7d3fd12) to head (2c2119e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/tensors/indexmanipulations.jl 16.66% 5 Missing ⚠️
src/auxiliary/sparsetensorarray.jl 71.42% 4 Missing ⚠️
src/tensors/abstractblocktensor/abstractarray.jl 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   54.36%   54.51%   +0.15%     
==========================================
  Files          17       17              
  Lines        1398     1394       -4     
==========================================
  Hits          760      760              
+ Misses        638      634       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos lkdvos merged commit 3392c90 into main Feb 11, 2026
29 checks passed
@lkdvos lkdvos deleted the ld-speedups branch February 11, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant