Currently, we don't know how much saving we are making (performance or memory wise), lest the percentage of styles that are shared between elements.
Style sharing is improving performance as we don't need to re-apply our styles yet we don't want to make canShareStyleWithElement slow. Instrumenting would give us more insight into how to make this trade-off.
Created attachment 133175 [details]
Quick and super dirty patch I have been using to get some statistics on our style sharing