Skip to content
Snippets Groups Projects
Commit 79d2184a authored by HJ's avatar HJ :fire:
Browse files

more performance testing

parent 6df28cde
No related branches found
No related tags found
2 merge requests!1928Release 2.7.0,!1892Themes 3.0 / Pleroma ISS (Interface Style Sheets) [Side A]
......@@ -352,6 +352,7 @@ export const init = (extraRuleset, palette) => {
}).reduce((acc, x) => [...acc, ...x], [])
stateVariantCombination.forEach(combination => {
const tt0 = performance.now()
const soloSelector = ruleToSelector({ component: component.name, ...combination }, true)
const selector = ruleToSelector({ component: component.name, ...combination, parent }, true)
......@@ -507,6 +508,10 @@ export const init = (extraRuleset, palette) => {
}
innerComponents.forEach(innerComponent => processInnerComponent(innerComponent, { parent, component: name, ...combination }))
const tt1 = performance.now()
if (!component.virtual) {
console.log('State-variant ' + combination.variant + ' : ' + combination.state.join('+') + ' procession time: ' + (tt1 - tt0) + 'ms')
}
})
const t1 = performance.now()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment