Conversion from TS to JSON-schema too slow (resources heavy)
Summary
The TS -> JSON-schema conversion on my local system takes about 15 minutes, which is still too long. In the shared gitlab runner, it takes more than 1 hour. Besides that, the process uses a lot of resources.
Steps to reproduce
npm run build (gitlab CI)
What is the expected correct behavior?
The conversion should perform significantly faster (up to 10 minutes could be tolerated).
Relevant logs and/or screenshots
As seen in this issue the conversion library is using recursion in a bad way, which causes exceeding of the stack size. For that reason I needed to expand node's stack size to 10240 kB (siehe core!7 (merged)).
Possible fixes
Use of an another library (? ; @anselmstordeur do you know why we didn't use typescript-json-schema?)Refactoring of StAppsCore (models)- Optimization of the current conversion library
- @krlwlfrt : use the Typedoc project reflection to generate the schema files ourselves
Edited by Jovan Krunić