[LyX features/breakrows] Increase metrics cache maximal size

Scott Kostyshak skostysh at lyx.org
Thu Oct 7 02:30:10 UTC 2021


On Tue, Oct 05, 2021 at 03:36:48PM +0200, Jean-Marc Lasgouttes wrote:
> The branch, breakrows, has been updated.
> 
> - Log -----------------------------------------------------------------
> 
> commit 8224ebef5e34b5997cc101c0a387414d49f55e81
> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
> Date:   Tue Oct 5 15:52:31 2021 +0200
> 
>     Increase metrics cache maximal size
>     
>     Increase the maximal size of the breakString cache (to compute where
>     to break lines) from 512kB to 10MB. This has a big impact of cache
>     hits on large file like the example in #12297, which is now 99%. On
>     this example the time taken by breakString decreases from 33.5us to
>     2.4us.
>     
>     The string width cache has been increased fro 512kB to 1MB, but this
>     does not make such a big difference.
>     
>     Additionally, comments and variable names have been improved.
>     
>     Related to bug #12297.

Nice! Thanks for working on this. This piques my curiosity about what other cache levers can be adjusted. I really like that Okular (see attachment) let's me control the tradeoff between memory usage and performance. For example, in LyX, is it possible to load everything so that when I scroll fewer things (like previews) are computed on-the-fly?

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: okular.png
Type: image/png
Size: 75644 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211006/17bef436/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211006/17bef436/attachment-0001.asc>


More information about the lyx-devel mailing list