Skip to content

Conversation

@jeremystretch
Copy link
Member

@jeremystretch jeremystretch commented Nov 10, 2025

Fixes: #20660

  • Tweak exec_module() to avoid forcing the creation of a new storage connection on each call
  • Convert module_scripts to a cached property, to avoid triggering a new fetch for each script within a module file

Some quick testing using three modules comprising five total scripts shows total rendering time for the script list view reduced from ~4.15s to ~0.80s. There is still some linear increment per script module, as each file must be fetched from remote storage, but it should be greatly reduced.

@jeremystretch jeremystretch requested review from a team and bctiemann and removed request for a team November 10, 2025 20:14
Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw very similar improvements in loading time.

@jnovinger jnovinger merged commit e787a71 into main Nov 11, 2025
10 checks passed
@jnovinger jnovinger deleted the 20660-script-loading-time branch November 11, 2025 04:47
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.

CustomStoragesLoader creates storage on every exec_module

3 participants