Open
Description
While looking into some performance challenges I noticed some slow operations or at least operations that can cause peak load.
- JSON-LD processing is really slow. The json-gold library creates the context and validates VCs every time. The validating step does a lot of regexes.
- we do a lot of json (un)marshalling. For VC/JSON-LD processing, DID resolving and internals where we marshal/unmarshal to/from interface{}
- the memory allocations for json processing also causes GC cycles.
There are some quick fixes:
- cache DID resolve after unmarshal
- fork json-gold and disable some validation checks
- check functions/methods on
interface{}
arguments and remove some of the marshal/unmarshal operations where possible.
Metadata
Metadata
Assignees
Labels
No labels