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

chore: speed up parts of the build #3812

Merged
merged 1 commit into from
Dec 18, 2024
Merged

chore: speed up parts of the build #3812

merged 1 commit into from
Dec 18, 2024

Conversation

alecthomas
Copy link
Collaborator

This should have a fairly decent cumulative effect.

Before:

$ time just build-zips
just build-zips  0.20s user 0.09s system 22% cpu 1.287 total
$ time just go2proto
just go2proto  0.83s user 0.09s system 84% cpu 1.090 total
$ time just build ftl 2>&1 | grep Running
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-zips`...
===> Running recipe `pnpm-install`...
===> Running recipe `build-frontend`...
===> Running recipe `build`...
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-zips`...
===> Running recipe `build-without-frontend`...
===> Running recipe `build-zips`...
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-go-binary`...
just build ftl 2>&1  6.32s user 3.05s system 95% cpu 9.799 total
grep Running  0.00s user 0.00s system 0% cpu 9.798 total

After:

$ time just build-zips
just build-zips  0.31s user 0.22s system 107% cpu 0.498 total
$ time just go2proto
just go2proto  0.04s user 0.02s system 20% cpu 0.277 total
$ time just build ftl 2>&1 | grep Running
===> Running recipe `pnpm-install`...
===> Running recipe `build-frontend`...
===> Running recipe `build`...
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-zips`...
===> Running recipe `build-without-frontend`...
===> Running recipe `_build-go-binary-fast`...
just build ftl 2>&1  3.59s user 2.62s system 159% cpu 3.903 total
grep Running  0.00s user 0.00s system 0% cpu 3.902 total

This was referenced Dec 18, 2024
@alecthomas alecthomas force-pushed the aat/justfile-speedups branch 6 times, most recently from aa6c494 to 6437970 Compare December 18, 2024 10:04
This should have a fairly decent cumulative effect.

Before:

```
$ time just build-zips
just build-zips  0.20s user 0.09s system 22% cpu 1.287 total
$ time just go2proto
just go2proto  0.83s user 0.09s system 84% cpu 1.090 total
$ time just build ftl 2>&1 | grep Running
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-zips`...
===> Running recipe `pnpm-install`...
===> Running recipe `build-frontend`...
===> Running recipe `build`...
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-zips`...
===> Running recipe `build-without-frontend`...
===> Running recipe `build-zips`...
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-go-binary`...
just build ftl 2>&1  6.32s user 3.05s system 95% cpu 9.799 total
grep Running  0.00s user 0.00s system 0% cpu 9.798 total
```

After:

```
$ time just build-zips
just build-zips  0.31s user 0.22s system 107% cpu 0.498 total
$ time just go2proto
just go2proto  0.04s user 0.02s system 20% cpu 0.277 total
$ time just build ftl 2>&1 | grep Running
===> Running recipe `pnpm-install`...
===> Running recipe `build-frontend`...
===> Running recipe `build`...
===> Running recipe `go2proto`...
===> Running recipe `build-protos`...
===> Running recipe `build-zips`...
===> Running recipe `build-without-frontend`...
===> Running recipe `_build-go-binary-fast`...
just build ftl 2>&1  3.59s user 2.62s system 159% cpu 3.903 total
grep Running  0.00s user 0.00s system 0% cpu 3.902 total
```
@alecthomas alecthomas force-pushed the aat/justfile-speedups branch from 6437970 to ca2c4e8 Compare December 18, 2024 10:12
@alecthomas alecthomas enabled auto-merge (squash) December 18, 2024 10:17
@alecthomas alecthomas merged commit 004a8e8 into main Dec 18, 2024
91 checks passed
@alecthomas alecthomas deleted the aat/justfile-speedups branch December 18, 2024 10:19
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