Re: Graphics preview in parallel

Scott Kostyshak <[email protected]> Fri, 10 Jul 2026 11:38:40 +0200
Newsgroups gmane.editors.lyx.devel
Message-ID <alC5d7bBy88cZXBz@jimmy>
On Mon, Jul 06, 2026 at 03:38:31PM +0200, Pavel Sanda wrote:
> On Sun, Jun 28, 2026 at 11:13:16AM +0200, Scott Kostyshak wrote:
> > > > I personally would like the option to be able to increase the threads.
> > > > But this can be figured out later.
> > > 
> > > Hmm I found it somewhat too technical to push into UI.
> > 
> > I think most would agree with you.
> > 
> > > You would like to see
> > > nuymber of threads in settings?
> > 
> > Personally (for my own use case), yes. For users, not yet. Thus I would
> > like to see a preference that is not (yet) shown in the UI. If we make
> > uses of threads in other cases, then I may argue for it to be exposed to
> > the users.
> > 
> > I think the discussion below is related, since it relates to the
> > trade-offs regarding system resources.
> 
> 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" ?

> > > > constantly readjusted as the document is loaded on-the-fly. I would
> > > > prefer an option to just have everything load at the beginning.
> > > 
> > > Did you looked on the second patch? You could trigger it via key binding
> > > or home grown icon via that lfun...
> > 
> > I haven't looked at the patches at all, only your email. I might look
> > into a local patch (on top of yours) that run this by default when
> > loading a buffer. Do you have a reason not to always have it enabled?
> > I'm just talking about a local patch, not arguing this should be done by
> > default by LyX.
> 
> 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)?

> One of the reasons I am hesitant
> to push the thread count limits too high by default.

Agreed.

Scott

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
screenshot.avif (image/avif, 82.3 KB) - not displayed
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEMfkICpsJzYuNuGlOA4ZnarZHC+sFAmpQvZsACgkQA4ZnarZH
C+tDYggAi5LBpFy1aD4nTCmuksQRGtoD3RIZzLI8XqM08thaXuUiDfoKn1rWnSLn
jJwhJ6OaraOMgeGDU1mSNXuL1V6zhb07Vyc+L/Gr5ByKk2qSnJdZ7fo8Gd9p4Fvc
RViesFsJP6tojmzePr3RXgAawCvyTl3052IpjJ6FlJ4KS4zLSvqazItUzA+Vldf+
E1d/rPzbyWLPMY1mKEKLFDXToltGWphAvcARlt03m+ShsXf0k/arhU0pty0gXxC5
deH5Rsi5f6V3UMOdO0uE26awpTutXyi/xbqBPpa1DA1N5AzvBKmOjkrJ1qtVtVyO
iiTaTNqEGMpyGS8Y0b4VZCvnhGxBYw==
=tkud
-----END PGP SIGNATURE-----