Skip to content

Improve performance with type-scoped contexts #41

@rubensworks

Description

@rubensworks

Issue type:

  • ➕ Feature request

Description:

An experimental typeScopedContexts flag has been added to Components-Generator.js that allows config files to be written in the form of aclManager instead of WebAclAuthorizer:_aclManager, without having the chance of clashing with other classes.

At the time of writing, when this flag is enabled in the Solid community server, this results in a massive overhead.
This is caused by how the JSON-LD context parser library handles type-scoped contexts. Disabling context validation reduces overhead a bit, but it still takes 4 seconds (instead of 0,5 seconds without this feature).

One solution might be to both disable context validation and reuse the compiled context for each parsed JSON-LD file.
Other solutions might be better and possible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions