Description
First, test whether this validation is the culprit:
- track JS memory and CPU usage;
- try knocking out return validation and running Echo( Resolve( L1 ) );
- try knocking out JSON schemata validators and running the above;
- we should see vastly reduced memory and/or CPU usage after both of the above
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- rewrite validators in bare JS (no JSON schemata)?
- eliminate extraneous asJSON* and copy calls on ZWrappers
- "pre-validate" ZWrappers to avoid duplicate calculations?
- only validate as type if type is not Z1 (for argument declarations/return types)?
Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist