Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Speed up playground build slightly #2242

Merged
merged 1 commit into from
Mar 18, 2023
Merged

Conversation

max-sixty
Copy link
Member

@max-sixty max-sixty commented Mar 18, 2023

We no longer need to run a build command in the playground on prql-js, since the command is now part of prql-js's preinstall.

This givs us some speedup — 23s down from 32s — but most of the time is still taken up by re-running wasm-opt.

There's an issue for this in rustwasm/wasm-pack#1152. But probably wasm-opt should be run by build.rs which knows whether it requires re-running based on changed input files https://doc.rust-lang.org/cargo/reference/build-scripts.html

I think the current state is probably OK — we still get instant feedback when developming the playground; this is only required when starting the playground or changing prql-js

We no longer need to run a build command in the playground on `prql-js`, since the command is now part of `prql-js`'s `preinstall`.

This givs us some speedup — 23s down from 32s — but most of the time is still taken up by re-running `wasm-opt`.

There's an issue for this in rustwasm/wasm-pack#1152. But probably `wasm-opt` should be run by `build.rs` which knows whether it requires re-running based on changed input files https://doc.rust-lang.org/cargo/reference/build-scripts.html

I think the current state is probably OK — we still get instant feedback when developming the playground; this is only required when _starting_ the playground on changing `prql-js`
@max-sixty max-sixty enabled auto-merge (squash) March 18, 2023 21:11
@max-sixty max-sixty merged commit 20136f3 into PRQL:main Mar 18, 2023
@max-sixty max-sixty deleted the pg branch March 18, 2023 21:15
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