Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decorator-related slow performance #2095

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bzczb
Copy link

@bzczb bzczb commented Jan 13, 2024

Inside decorators preprocess_args() and use_clip_fps_by_default(), capture the inspected argnames at decoration time instead of recomputing them every time the wrapped function is called. This improves performance by a great deal, particularly when rendering audio.

Fixes #2094 Certain decorators perform extremely slow function inspection every call

@coveralls
Copy link

coveralls commented Feb 10, 2024

Coverage Status

coverage: 81.926% (+0.02%) from 81.904%
when pulling b9b5ecc on bzczb:i2094-slow-decorators
into bc8d1a8 on Zulko:master.

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.

Certain decorators perform extremely slow function inspection every call
2 participants