Conversation
Collected metrics for baseline, partial, and minimal runtime configurations using examples from the /examples directory. Confirmed that LTO successfully removes the parser/compiler when eval and module-loader are disabled.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Parser and compiler will always be needed as build-time dev toolchain, but they're not always needed for runtime embedding for We need to find the conditions on which the parser/compiler truly is safe to be removed from runtime. When So a combination of all Or is there some other dependencies on the runtime parser/compiler? |
This submission contains the findings from measuring the bundle size reduction of QuickJS when using Link Time Optimization (LTO) and various
-fno-*flags.Key metrics for
hello.js(stripped):The reduction in partial runtime is primarily due to the linker stripping the JavaScript compiler and parser, which are no longer reachable at runtime when eval and the module loader are disabled.
PR created automatically by Jules for task 6500714725170663585 started by @yumin-chen