Performance Optimization for Reading 3000 JS Files on Startup #1140
Unanswered
sarahlydia9868
asked this question in
Q&A
Replies: 1 comment
-
For my JS engine I don't quite have 3k files but a good amount, and I bundle them with esbuild and pre compile them. Works well! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I'm working on a project that involves loading around 3000 JavaScript files at startup using QuickJS-NG. While the engine works well overall, the startup time has become a major bottleneck due to the sheer number of files being read and parsed.
I'm wondering if there are any recommended strategies or features in QuickJS-NG that could help speed up the reading and initialization of large numbers of JS files. Some ideas I’ve considered:
Precompiling scripts to bytecode ahead of time
Bundling or merging files to reduce I/O overhead
Using lazy loading or deferred execution
Parallelizing file reads (if supported)
Has anyone faced similar challenges or found effective solutions for large-scale JS file loading with QuickJS-NG?
Thanks in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions