Skip to content

General performance issue #3663

Open
Open
@woutslakhorst

Description

@woutslakhorst

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions