helix-website
helix-website copied to clipboard
feat(rum-oversight): improve matching in consent
The matching in consent maps over all possibilities. Replacing it with find can shortcut the evaluation as only one match is required.
Description
Replace the map in consent with a find and delay the actual look up of the target.
Motivation and Context
Trying to improve the speed of consent matching.
How Has This Been Tested?
Looking at the ui rendering speed in the console at https://consentmatching--helix-website--karlpauls.hlx.page/tools/oversight/explorer.html?domain=aem.live&domainkey=