-
Notifications
You must be signed in to change notification settings - Fork 18
High CPU Consumption #25
Copy link
Copy link
Open
Labels
reviewedFor library maintainers only. Indicates that this issue was reviewed.For library maintainers only. Indicates that this issue was reviewed.
Description
Activity
Metadata
Metadata
Assignees
Labels
reviewedFor library maintainers only. Indicates that this issue was reviewed.For library maintainers only. Indicates that this issue was reviewed.
Hi @chuff (maybe)?
We've started using the GPP library in our live environment to get a better idea of how it performs etc., and to ensure it works. While we're not receiving many GPP strings, we are receiving TcfEuV2/TCF2/GDPR strings in large volume. On our servers, we've noticed that CPU consumption for handling a TcfEuV2 (GDPR IAB TCF V2) string processing through the TcfEuV2 model eats up around 8% CPU, while the same strings processing through the older IAB TCF TCString library only consumes around 0.8% CPU.
Looking at the TcfEuV2 model, I see that the entire string is decoded upon creation rather than lazy decoding only the segments that are relevant/used. Would it be feasible to update the decryption/parsing/processing methodology to be lazy?
For performance stats, I used this tool