Skip to content

sp.reset(), cheaper disabled decorators, typed regions, lazy h5py (0.7.5) - #341

Merged
max-models merged 3 commits into
develfrom
opt-in-fixes
Oct 21, 2026
Merged

max-models merged 3 commits into
develfrom
opt-in-fixes

Conversation

@max-models

Copy link
Copy Markdown
Owner

Follow-up to #339, from adding opt-in regions to the max-models libraries.

  • sp.reset() for test suites: keeps @sp.profile functions registered, so they record again after the next setup(); calling one after a reset no longer raises.
  • A disabled decorated call is one check and a direct call (skips metadata and recursive tracing).
  • with sp.region(...) type-checks and @sp.profile keeps the signature (pyright, ty, mypy).
  • register_opt_in_tag() may come after a library's imports.
  • import scope_profiler no longer loads h5py or importlib.metadata.
  • The docs no longer claim disabled instrumentation is free.
  • pproc takes maxplotlibx >= 0.1.9 instead of pinning 0.1.9.
  • Version 0.7.5.

@max-models
max-models merged commit 2abb4ca into devel Oct 21, 2026
34 checks passed
@max-models
max-models deleted the opt-in-fixes branch October 22, 2026 06:07
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