Skip to content

lazy import faster_whisper#10

Merged
primaprashant merged 2 commits intomainfrom
lazy-import-faster-whisper
Oct 16, 2025
Merged

lazy import faster_whisper#10
primaprashant merged 2 commits intomainfrom
lazy-import-faster-whisper

Conversation

@primaprashant
Copy link
Copy Markdown
Owner

What

lazy import faster_whisper

Why

for quicker startup time of the tool. Profile the imports and faster_whisper was taking the majority of the import time

==================================================
DETAILED IMPORT TIMES
==================================================
faster_whisper.WhisperModel      0.3309s ( 61.2%)
numpy (as np)                    0.0682s ( 12.6%)
sounddevice (as sd)              0.0681s ( 12.6%)
rich (all)                       0.0442s (  8.2%)
click                            0.0140s (  2.6%)
pyperclip                        0.0049s (  0.9%)
wave                             0.0025s (  0.5%)
time                             0.0000s (  0.0%)
--------------------------------------------------
TOTAL                            0.5409s
==================================================

@primaprashant primaprashant merged commit 33ed174 into main Oct 16, 2025
1 check passed
@primaprashant primaprashant deleted the lazy-import-faster-whisper branch October 22, 2025 07:33
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