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

Building paperback is slow #50

Open
Sjors opened this issue Jun 12, 2023 · 2 comments
Open

Building paperback is slow #50

Sjors opened this issue Jun 12, 2023 · 2 comments

Comments

@Sjors
Copy link
Owner

Sjors commented Jun 12, 2023

./make_book.sh --paperback takes really long for me.

On a 2019 Macbook Pro (2,3 GHz 8-Core Intel Core i9):

165,75s user 21,38s system 99% cpu 3:07,79 total

On a 2017 iMac (3,4 GHz Quad-Core Intel Core i5):

207,83s user 27,46s system 55% cpu 7:06,18 total

@bradleystachurski
Copy link

Out of curiosity, is this roughly what you're seeing for build times?

root@eaeb68a17691:~/nado-book# time ./make_book.sh --paperback

real    3m4.038s
user    2m59.142s
sys     0m13.953s

For reference, I'm not on a particularly beefy machine.

root@eaeb68a17691:~/nado-book# lscpu
Architecture:        x86_64
CPU(s):              4
Model name:          Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz

@Sjors
Copy link
Owner Author

Sjors commented Jun 18, 2023

Yes, 3 to 7 minutes depending on the machine. Added some stats to the description.

It's especially annoying when I'm making smaller changes. Perhaps it can be parallelised, so that it only rebuilds the chapter I touched? It might also help to replace the current bash script with a makefile, which should avoid some duplicate work on the figures.

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

No branches or pull requests

2 participants