Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Internal: cache inspect.signature used by pop_params#596

Merged
cvanelteren merged 2 commits into
mainUltraplot/UltraPlot:mainfrom
fix/hot-spot-fixUltraplot/UltraPlot:fix/hot-spot-fixCopy head branch name to clipboard
Feb 26, 2026
Merged

Internal: cache inspect.signature used by pop_params#596
cvanelteren merged 2 commits into
mainUltraplot/UltraPlot:mainfrom
fix/hot-spot-fixUltraplot/UltraPlot:fix/hot-spot-fixCopy head branch name to clipboard

Conversation

@cvanelteren

Copy link
Copy Markdown
Collaborator

Randomly checked through some functions and stumbled upon a speed-up. The _pop_paramsis used by a lot of functions and it uses inspect signature a lot. By caching that function we can gain a 13x speed up.

  • Before: ~1.88s for 200k _pop_params calls
  • After: ~0.138s for 200k calls

@cvanelteren cvanelteren merged commit 6ab0bef into main Feb 26, 2026
15 checks passed
@cvanelteren cvanelteren deleted the fix/hot-spot-fix branch February 26, 2026 03:31
K-Mirembe-Mercy pushed a commit to K-Mirembe-Mercy/UltraPlot that referenced this pull request Mar 22, 2026
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.