Open cut-to-the-cheese opened 3 years ago
this is brilliant! Please reach out to @juancavallotti and @DavoCoder to further evaluate the suggested solution!
best,
Andres
@skuller thank you for the update. I will check with our team for best path forward.
Current set of operations:
When a property within the JSON is masked, these operations are performed:
InputStream
into a JSON object.Issue:
There is an implicit recursive iteration in steps 1 and 2, and an explicit iteration in step 3.
Fix:
Use a custom deserializer for converting the incoming payload of the
InputStream
type to a JSON object. During the tokenization/detokenization, apply the mask in place and thereby eliminating the need for steps 2 and 3 resulting in a performance gain of up to a factor of 3.