hack-pad/hackpad

The building process seems to be very slow

astrolemonade opened this issue · 5 comments

Hello and thank you for making this!
For some reasons I cannot understand, the build process seems to be very slow. I am waiting for more than 5 minutes and still it didn't finish. I wonder if it is browser related;I am using Firefox un GNU/Linux 89 on a 64x machine.

Hey @cata0309, thanks for opening!

Is this the default hello world program? The first compile and install is a bit slow (~1-2m), though subsequent compiles should be faster (~15s).

If you could post your Firefox version as well, that'd be great. I can try to spin up a similar setup for testing.

I just discovered I had a failed deploy on the master branch, so it's possible c636f0c solved your delay issues. I've redeployed with the latest just now, let me know if that's changed anything!

I've just deployed another version with some latency performance improvements.

Here's the times I'm seeing on macOS 11.4 (2.9 GHz base clock, 16GB RAM) Firefox 86.0.1. The higher-than-average base clock may make it unusually quick on my machine, so results may vary.

Looks like running from scratch (no caches), it takes 82.81s to run. A second run takes 5.23s.
image
image

I'll run on a Linux VM as well, probably Ubuntu, and report back.

Running on Linux with Ubuntu 20.04.2 LTS (in a VM on the same mac, 2 cores only, 2GB RAM) Firefox 90.0

This one took a little longer from scratch at 122.08s, probably due to virtualization and reduced resources. A second run takes 8.04s.
image
image

@cata0309 Can you reproduce on the latest version?

Since I haven't heard back, I'll go ahead and close. We're tracking proper parallelism here, which should significantly increase compile times if/when implemented: #11