Skip to content

Only import the profiler when profiling is enabled - #464

Open
Sab44 wants to merge 1 commit into
jellyfin:masterfrom
Sab44:import-profiler-only-when-needed
Open

Sab44 wants to merge 1 commit into
jellyfin:masterfrom
Sab44:import-profiler-only-when-needed

Conversation

@Sab44

@Sab44 Sab44 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

I'm working on improving load times for JellyCon widgets.

This small PR is a quick win: we import the profiling dependencies only when they are really needed i.e. profiling is enabled.

On my ODroid N2+ I measured ~0.1s to import cProfile and pstats which affects every plugin call (e.g. each home screen widget). For my personal setup, where I load 4 widgets in my home screen I measured a total load time improvement of ~1.9s which is quite noticeable.

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