Re: Re: [scintilla] Parallel layout
Mitchell <[email protected]>
| Newsgroups | gmane.editors.scite.general |
|---|---|
| Message-ID | <[email protected]> |
Never mind, I saw the gitlab link in the ticket. On Wed, 2 Feb 2022 13:28:33 -0500 Mitchell <[email protected]> wrote: > Hi Neil, > > On Wed, 2 Feb 2022 19:53:37 +1100 > "'Neil Hodgson' via scite-interest" <[email protected]> wrote: > > > Me: > > > > > I wrote a proposal to multithread layout along with an implementing patch on SourceForge. This achieves a better than 4x speed up for wide lines on a 4 core 8 thread processor with Windows 10 and DirectWrite. > > > > > > https://sourceforge.net/p/scintilla/feature-requests/1427/ > > > > The parallel layout feature has been committed. The application has to ask for it with the SCI_SETLAYOUTTHREADS(int threads) API as the default is single threaded. The number of threads is capped by the hardware concurrency of the CPU = number of cores, doubled if hyper-threaded. > > > > Sometimes it is faster to use fewer than the maximum number of threads but this is mostly in cases which are very fast anyway, such as when the file is (almost) all ASCII and the ASCII Monospace feature is active. > > > > It is available on macOS, Win32 when using DirectWrite, and GTK (except on Win32 and macOS). The Pango library used for text by GTK is not supposed to be thread-safe on Win32. > > Do you have literature on this limitation? I'm very tempted to test this on both Win32 and macOS. > > Cheers, > Mitchell > > -- > You received this message because you are subscribed to the Google Groups "scite-interest" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/20220202132833.f76a5d999de18a358f69b7e9%40triplequasar.com. Cheers, Mitchell -- You received this message because you are subscribed to the Google Groups "scite-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/20220202134233.0959827c955e11fd76e03c17%40triplequasar.com.