You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In decorators.py, preprocess_args() and use_clip_fps_by_default() do function inspection on their decorated function every time the wrapped function is called. This causes extreme performance issues. On my system a large majority of the time rendering audio, something like 70% or 80%, is spent runninginspect.getfullargspec() on the same functions.
Expected Behavior
The decorators only compute their wrapped function's arguments once.
Actual Behavior
The decorators compute their wrapped function's arguments every time the wrapped function is called.
Steps to Reproduce the Problem
In a Python debugger, render anything in MoviePy. Set a breakpoint inside the decorator wrappers and observe.
Specifications
Python Version: 3.12
MoviePy Version: master (2.0.0.dev2)
Platform: Windows 10
The text was updated successfully, but these errors were encountered:
In decorators.py,
preprocess_args()
anduse_clip_fps_by_default()
do function inspection on their decorated function every time the wrapped function is called. This causes extreme performance issues. On my system a large majority of the time rendering audio, something like 70% or 80%, is spent runninginspect.getfullargspec()
on the same functions.Expected Behavior
The decorators only compute their wrapped function's arguments once.
Actual Behavior
The decorators compute their wrapped function's arguments every time the wrapped function is called.
Steps to Reproduce the Problem
In a Python debugger, render anything in MoviePy. Set a breakpoint inside the decorator wrappers and observe.
Specifications
The text was updated successfully, but these errors were encountered: