-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#406] Improve library performance when creating publisher restrictions #407
[#406] Improve library performance when creating publisher restrictions #407
Conversation
Hi @sevriugin, can you review this and also #409, #404 and #403 please? |
In general LGTM, I have doubts regarding Array.from it could be an issue if some publisher is still using IE11 |
@sevriugin Thank you for the review, |
The BST isn't good to satisfy perf requirement
d751942
to
f584491
Compare
Hello @aitnitishshelage Following yesterday's release, are there any plans to merge this one? |
89a93da
into
InteractiveAdvertisingBureau:master
closes #406
The goal of this PR is to improve the performance for encoding and decoding a String when using the Purposes Restrictions. There is no need to say that this is important since this impact to everything (at least everything that depend on a consent) in a website.
I tried also with the new vendorList v3 - version 11 https://vendor-list.consensu.org/v3/vendor-list.json and these are the performances before the changes I propose:
ENCODING (before)
DECODING (before)
After the changes I propose in this PR the performances are the following:
ENCODING (after changes)
DECODING (after changes)