I can't really recommend this. How many mistakes did we see (and make ourselves) in the old/brittle String->CSSTokenizer->CSSParserToken[Range,Stream] setup? A lot.
Should we at least delete some r-value constructors?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I can't really recommend this. How many mistakes did we see (and make ourselves) in the old/brittle String->CSSTokenizer->CSSParserToken[Range,Stream] setup? A lot.
Should we at least delete some r-value constructors?
A possible alternative: Take in a pointer instead of a const-reference. We'd never get any implicit conversion or otherwise temporary references that are kept only during the constructor and then discarded.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Steinar H GundersonI can't really recommend this. How many mistakes did we see (and make ourselves) in the old/brittle String->CSSTokenizer->CSSParserToken[Range,Stream] setup? A lot.
Should we at least delete some r-value constructors?
A possible alternative: Take in a pointer instead of a const-reference. We'd never get any implicit conversion or otherwise temporary references that are kept only during the constructor and then discarded.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Steinar H GundersonI can't really recommend this. How many mistakes did we see (and make ourselves) in the old/brittle String->CSSTokenizer->CSSParserToken[Range,Stream] setup? A lot.
Should we at least delete some r-value constructors?
Anders Hartvoll RuudA possible alternative: Take in a pointer instead of a const-reference. We'd never get any implicit conversion or otherwise temporary references that are kept only during the constructor and then discarded.
Sounds good.
It actually caught two issues, so I guess that's good :-)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Needs a re-stamp since I needed to add & to a bunch of unit tests.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Make CustomProperty not refcount its AtomicString.
We spend a fair amount of time constructing short-lived CustomProperty
instances (e.g., during resolving the cascade), which take a refcount
on the AtomicString for the property name. Make it contain a reference
instead, since it's already STACK_ALLOCATED and thus cannot live
forever.
Style perftest is neutral, but there's a Speedometer3 win
(M1 Pinpoint, LTO but no PGO, significant results at 99% only):
NewsSite-Next [ -0.4%, -0.1%]
TodoMVC-React-Redux [ -0.4%, -0.1%]
React-Stockcharts-SVG [ -0.5%, -0.1%]
TodoMVC-React-Complex-DOM [ -0.5%, -0.1%]
TodoMVC-Vue [ -0.6%, -0.2%]
TodoMVC-Backbone [ -0.7%, -0.2%]
Score [ +0.0%, +0.3%]
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |