Closed fokion closed 3 months ago
The idea is that you can have a big JSON payload , by default we will try to unmarshal it and we may not use the new keys in any assertion. That will cause issues with performance as the constant unmarshalling , copying of values with increase memory and cpu usage. The point here is to unmarshal this payload lazily and for now have that feature tested under a flag so that we dont affect everyone.
Closing this pull-request for now: we don't want to add a global flag, unless it's a new feature that we want to test and include in the next major release.
This is done in order to avoid expanding and storing big payloads that we dont need and we dont use for assertions. The flag is called
VENOM_NO_JSON_EXPANSION
.