Skip to content

change compile_all to parallel #9

@felixschurk

Description

@felixschurk

Hei,
this is more an enhancement than an issue.
When compiling all with ./calliope -p 2022 and there are quite some files in the directory it does take a long time.

My idea is to pass all the files into the GNU parallel command https://www.gnu.org/software/parallel/ which then would execute it on as many CPU's as the given machine has.

A downside is that I have currently not figured out how to stop if an file could not be compiled.
But this only gives one problem for the "bad" file, others will continue to be compiled.

I compared the timing with time for 59 tex files:
parallel :

real	6m27.384s
user	16m23.058s
sys	5m38.090s

sequentiell:

real	13m10.128s
user	10m54.348s
sys	1m53.366s

which would mean that it only took kind of half the time.

If you think that would be an useful enhancement I could create a pull request for it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions