Thursday, 1 September 2022

Re: Performance Benchmarks?

On 01/09/2022 13:10, John-Mark Bell wrote:
> On 01/09/2022 00:56, Kristian Van Tassell wrote:

>> If not, does anyone have any gut feelings as to whether newer versions
>> are faster?
>
> I doubt stylesheet parsing is significantly faster than it used to be.
> There have, however, been many improvements to the performance of style
> selection in the last 10 years. You can find discussion of one of them
> here:
> https://listmaster.pepperfish.net/hyperkitty/list/netsurf-dev@netsurf-browser.org/thread/TC4DVXUE637ZZLLL5UNYY6HO5MACJGTV/

The other big computed style selection optimisations were:

1. Avoiding selection altogether when we can detect that
it would result in the same computed style as a previous
element.

2. Up-front presentational hints.

Also, computed styles are now transparently interned and
ref counted now, so elements will share the same computed
styles whenever possible, reducing memory usage.

--
Michael Drake
_______________________________________________
netsurf-dev mailing list -- netsurf-dev@netsurf-browser.org
To unsubscribe send an email to netsurf-dev-leave@netsurf-browser.org

No comments:

Post a Comment