Graphics preview in parallel

Pavel Sanda sanda at lyx.org
Sat Jul 11 02:03:09 UTC 2026


On Fri, Jul 10, 2026 at 11:38:40AM +0200, Scott Kostyshak wrote:
> > I have deal for you. We keep the number of threads on the limit I proposed
> > but I will add parameter [threads_count] to the lfun you haven't seen yet,
> > so if you bind this lfun with your personal lucky number you will get
> > the full doc image load on a single stroke.
> > What you think?
> 
> Sounds good! Can we (I can make a note to check it out after your commit
> if you want) add a special argument that would mean all cores? Maybe we
> can call it "all" ?

'all' is for including childern, but 'max' is your friend, see the commit
e0dd8db6ade.

For our convenience I also attach patch for 2.5.x if you want to run it
in your local tree, see attached patch -- I do not plan to backport.

Please try how it works and let me know.

> > The only thing to keep in mind is that if you put too many threads and have too
> > little memory you can enter swap hell.
> 
> Are you saying that the "new" desktop they just gave me at my university
> is not ideal (screenshot attached)?

Haha, I see that memory became really expensive nowadays.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buffer-load-graphics.25x.patch
Type: text/x-diff
Size: 9605 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20260711/a39b1cba/attachment.bin>


More information about the lyx-devel mailing list