Skip to content
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

Merged

Conversation

marco-prontera
Copy link
Contributor

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)
pre-encode
DECODING (before)
pre-decode

After the changes I propose in this PR the performances are the following:
ENCODING (after changes)
post-encode
DECODING (after changes)
post-decode

@marco-prontera
Copy link
Contributor Author

Hi @sevriugin, can you review this and also #409, #404 and #403 please?

@sevriugin
Copy link
Collaborator

In general LGTM, I have doubts regarding Array.from it could be an issue if some publisher is still using IE11

@marco-prontera
Copy link
Contributor Author

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, Array.from is already used in this library also in the Core, so we can be sure that the usage is safe (also because IE11 reached the EOL)

@EdgardoRodriguezSolano
Copy link

Hello @aitnitishshelage Following yesterday's release, are there any plans to merge this one?

@sevriugin sevriugin merged commit 89a93da into InteractiveAdvertisingBureau:master Aug 31, 2023
1 check passed
sevriugin added a commit that referenced this pull request Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve library performance when creating publisher restrictions for vendors ids above 4000
3 participants