lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allow parallelism in input/regression/lilypond-book/ (issue 54768004


From: dak
Subject: Re: Allow parallelism in input/regression/lilypond-book/ (issue 547680043 by address@hidden)
Date: Sun, 23 Feb 2020 03:00:18 -0800

On 2020/02/23 10:29:53, hanwenn wrote:
> On 2020/02/23 10:04:46, hanwenn wrote:
> > On 2020/02/23 09:49:24, dak wrote:
> > > Stupid question: does the database design of lilypond-book even
allow for
> > > uncoordinated parallel runs?
> > 
> > It's not a stupid question; it's a good question.  
> > 
> > Writing files atomically (open temp file, write, close, rename),
seems a lot
> of
> > work.
> > 
> > I've considered adding an advisory lock on the DB directory. Since
we max out
> > CPUs when we run lp-book, it shouldn't slow down things, but I was
worried
> about
> > doing file locks cross-platform.
> > 
> > Maybe I can do flock(1), which at least lets limit the worry to OSX
vs. Linux.
> 
> to answer your original question: I think the \sourcefileline
statements can
> differ between snippets written from different lp-book instances, and
this can
> trigger a consistency check failure.

So wouldn't it appear that the way to exploit parallelism with
lilypond-book, short of writing its own jobserver, is to use CPU_COUNT
like we did before?

https://codereview.appspot.com/547680043/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]