pub fn normalize_with_cache(
registry: &Registry,
document: &Value,
limits: Limits,
cache: &dyn ContextCache,
) -> Result<Processed, Error>Expand description
normalize_with, keeping processed contexts in cache.
The result is the same as without one. What changes is the cost: a
document whose @context has been seen before, as nearly every one a
server receives has, is not made to process it again, and nor is ojak’s
own context, which every document is compacted against.