-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Improve performance when compiling enormous files #323
Comments
Any update? Due to COVID, this is kind of helpfull |
Having same issue here! unable to generate the .ts files. Is it possible to break this into smaller files? |
3.3mb it pretty hefty. 600kb -- the biggest test case so far -- seems to work fine. Even when disabling formatting (running Prettier is by far the slowest part of compilation), JSTT hangs when run as part of a test case. Can you try disabling formatting If it still hangs: I merged a test case for this issue, and disabled it for now. Whoever wants to take a shot at speeding up the compiler:
|
Hey @navndn @saulide @dinbtechit, mind trying again with the latest version (v10.1.2)? @G-Rath just landed a big perf improvement in #361. |
@G-Rath If that's right, could be worth filing an issue for json-schema-ref-parser? |
Yeah, probably - I'll look to do that if I have the time and a good reproduction case (I don't mind doing it, but also I've not got a lot context on the underlying issue other than hacking around, so might not be able to dedicate enough time to the issue to provide the info that's required for the maintainers). I hacked So then the blocker becomes I'm toying around with the code in those areas to see if they can be improved with caching, but it's really not looking promising :/ |
@G-Rath Thanks for digging in, and for documenting what you're finding. Even if you don't manage to get to the bottom of it, these will be great breadcrumbs for the next person to dig in! |
Apparently there's going to be a new kid on the block that'll replace |
Published as part of v11.0.0. |
This is probably a bug, compilation hangs for HL7 FHIR Json-schema.
FHIR schema is quite large, around 60k lines
Official link to download fhir.schema.json :
https://www.hl7.org/fhir/fhir.schema.json.zip
It hangs on both Windows & Ubuntu.
Any clue on this?
CLI:
json2ts -i fhir.schema.json -o fhir.d.ts
No luck with program too,
There is already a related issue #222 , but the original tittle doesn't specify HL7 FHIR schema.
The text was updated successfully, but these errors were encountered: