-
Notifications
You must be signed in to change notification settings - Fork 222
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
Playground build is slow, even without changes #2158
Comments
Update: After about 15-18 minutes of startup, VSCode displayed an error that it couldn't run the build scripts. Here's the output. At that point, I could
|
As I mentioned below, unfortunately you are following the correct steps and this is a known limitation. In short, a build that includes duckdb (which is automatically executed by rust-analizer) requires high machine power and takes a long time. However, I think duckdb is only used in the test, so I don't think it has anything to do with the book build. |
If you give it more memory, and it completes successfully, does it still take a long time on the second launch? |
Update: I think I gave it more memory successfully. I bumped Memory from 10 to 12 GBytes and Virtual Disk from 64 to 72GBytes. See image below. (I am not sure that this made a difference.) Here's what I see: From a fresh pull of current state of the
Quit VS Code, then relaunch it. Here's what I see:
|
FYI as a benchmark, I'm not surprised that it's quite slow to compile the first time. Unsure about having to interrupt the process; does it complete without that? Assuming I'm right in interpreting this as running successfully in reasonable time on each change, I think this is a great success! |
Update: Running on my 2019 2.3 GHz 8-Core Intel Core i9 MacBook Pro: From a cold-start (launching VS Code)
My take is that both the Book and Website are in terrific shape. I wonder if it would be possible to cache some of the build products for the Playground. Thanks! PS You're right - changes to Playground source files get reflected in the browser quite quickly - a second or two max. |
My understanding is that these caches are in the project directory. (Let me know if I'm wrong!) |
I don't know. (Here's where I show my lack of knowledge in all this stuff.) I'm simply using the Dev Container that was created when I pulled the repo. VS Code said, "Hey! There's a Dev Container here! Want to open it?" So I said yes. |
Ok, it should be bind-mounted by default, so the cache should remain in the git ignored directory of your local filesystem. |
I had a look at this — some minor speed up + an explanation in #2242 OK to close? |
I'm not quite ready to close this: The speedups do seem to have made a difference on the second startup, but the Playground is still painful. Here's how I tested:
At this point, I can open a new terminal window (I chose
Second run: Quitting VS Code and relaunching is a little faster, except for the Playground.
Here's a link to a video of starting VS Code the second time (after the container had been built) that shows the messages while the Playground is starting up: https://youtu.be/ZbKG-Vu7Xoo Question: Why is it stuck at the @max-sixty @eitsupi If this is as good as we can get with the Playground, then it's OK to close this. But it sure would be nice to cache some of the Playground build products. Many thanks. |
Appreciate the full timings, that's v helpful. For the playground build, quoting from #2242:
So we'd need upstream changes (or lots of work, which should then be upstreamed) to make that fast. I'll adjust the title and mark it as postponed, is that reasonable? |
Thanks for the detailed analysis! I suspect that these time-consuming builds could be skipped by using Taskfile's |
It's at a different level though — at the moment I'm quite confident of this one |
Thanks for explaining this. |
Thank you all for the careful analysis. Since there's no "simple fix", I believe it is reasonable to postpone this for now. |
FYI this is the upstream issue: rustwasm/wasm-pack#251
Edit: here's a library that is actually doing this! https://crates.io/crates/substrate-wasm-builder It requires nightly, which we won't ever require, but also possibly it might be moving to not require nightly? paritytech/substrate#13580 We're 2-3 months behind on the toolchain, so assuming this works, we could use this in a few months to replace |
What's up?
@eitsupi - This isn't quite a bug, but the devcontainer for commit d427c86 takes a long time (many minutes) to start up after it has already been built. Here's what I saw:
task run-book
when it's done, you'll be able to work on the bookThen...
vscode ➜ /workspaces/prql (main) $
task run-book
, see the Blocking waiting for file lock on build directory messageThis has persisted for 10+ minutes this morning. I will also note that during this time, the CPU on my computer was pretty heavily used, even to the point it interferes with GUI interactions.
Am I missing something? Any recommendations about what to do? Many thanks.
The text was updated successfully, but these errors were encountered: