Skip to content

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Nov 17, 2025

Unfortunately, #3030 doubled the import time for our performance test model, but the check there was too lax to catch it.

Sometimes, smart_subs_dict is applied to individual expressions, sometimes to complete matrices. If it's only applied to individual expressions or small matrices, avoid the overhead of flattening the substitutions first.

Update the time limits for the performance tests to catch such regressions earlier.

Fixes #3048.

@dweindl dweindl self-assigned this Nov 17, 2025
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.45%. Comparing base (8fc33dc) to head (2b93ad8).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3052      +/-   ##
==========================================
- Coverage   78.14%   77.45%   -0.69%     
==========================================
  Files         311      311              
  Lines       20593    20603      +10     
  Branches     1499     1500       +1     
==========================================
- Hits        16092    15958     -134     
- Misses       4491     4635     +144     
  Partials       10       10              
Flag Coverage Δ
cpp 70.72% <100.00%> (-0.04%) ⬇️
cpp_python 37.15% <50.00%> (-0.02%) ⬇️
petab 45.79% <45.00%> (-0.03%) ⬇️
petab_sciml 13.80% <45.00%> (-0.01%) ⬇️
python 69.39% <100.00%> (-0.03%) ⬇️
sbmlsuite-jax ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
python/sdist/amici/importers/utils.py 83.10% <100.00%> (-2.07%) ⬇️

... and 8 files with indirect coverage changes

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

@dweindl dweindl force-pushed the gh-3048-import-time branch from 93a1abe to b3e4794 Compare November 17, 2025 21:35
@dweindl
Copy link
Member Author

dweindl commented Nov 17, 2025

@dweindl dweindl marked this pull request as ready for review November 17, 2025 21:36
@dweindl dweindl requested a review from a team as a code owner November 17, 2025 21:36
@dweindl dweindl force-pushed the gh-3048-import-time branch 2 times, most recently from 4ef704b to 8bb24bc Compare November 18, 2025 07:14
Unfortunately, AMICI-dev#3030 doubled the import
time for our performance test model, but the check there was too lax to catch it.

Sometimes, `smart_subs_dict` is applied to individual expressions,
sometimes to complete matrices. If it's only applied to individual expressions
or small matrices, avoid the overhead of flattening the substitutions first.

Update the time limits for the performance tests to catch such regressions earlier.

Fixes AMICI-dev#3048.
@dweindl dweindl force-pushed the gh-3048-import-time branch from 8bb24bc to 2b93ad8 Compare November 18, 2025 08:43
@dweindl dweindl added this pull request to the merge queue Nov 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 18, 2025
@dweindl dweindl added this pull request to the merge queue Nov 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 18, 2025
@dweindl dweindl added this pull request to the merge queue Nov 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 18, 2025
@dweindl dweindl added this pull request to the merge queue Nov 18, 2025
Merged via the queue into AMICI-dev:main with commit f76cb6c Nov 18, 2025
31 of 32 checks passed
@dweindl dweindl deleted the gh-3048-import-time branch November 18, 2025 16:53
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.

Fix import performance regression and update test

2 participants