logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 79d2184afa9c04c9f7afb07e1910ae1f9fbdb18d
parent 6df28cde9d8ded05417845f507a353a87269afa9
Author: Henry Jameson <me@hjkos.com>
Date:   Thu,  8 Feb 2024 18:36:59 +0200

more performance testing

Diffstat:

Msrc/services/theme_data/theme_data_3.service.js5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js @@ -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()