Skip to content

Performance: Consider to replace Json stringify invokes with parser function #7148

@mbergen

Description

@mbergen

Is your feature request related to a problem? Please describe.
According to FO, setting up a lua environment (for each #invoke) is a reasonable performance overhead.
Given that Json.fromArgs in these cases does not do anything relevant besides calling the parser function, we could directly call the parser function instead.

Describe the solution you'd like
Replace usages of {{#invoke:Lua|invoke|module=Json|fn=fromArgs}} with {{#lpdb_create_json}}

!! Requires a special version of said function that accesses parent arguments !!

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions