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

Improve Performance on Subsequent Builds #6

Open
matthewsot opened this issue Sep 16, 2020 · 0 comments
Open

Improve Performance on Subsequent Builds #6

matthewsot opened this issue Sep 16, 2020 · 0 comments
Assignees

Comments

@matthewsot
Copy link
Contributor

Building papers with bazel-latex can be noticeably slower than just running pdflatex.

Some of this is certainly overhead in calling bazel, etc., however I think the bigger issue is that we don't cache build artifacts.

So whereas, if you've already built the paper once, you can usually just run pdflatex, we have to run pdflatex -> bibtex -> pdflatex -> pdflatex which blows up the time-to-build.

This should actually be pretty simple to fix. We can just declare the latex.out/* folder as an output of the rule in Bazel. Though there may be some difficulties in loading it back in at the beginning of the rule (sort of a circular dependency?). I'll work on it.

@matthewsot matthewsot self-assigned this Sep 16, 2020
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

1 participant