-
Notifications
You must be signed in to change notification settings - Fork 209
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
Investigate moving bundling into a worker #610
Comments
yes, for large (say Stripe-sized) documents with plenty of inline $refs or Redfish-like crap with plenty of external $refs (resolving such a document may last seconds)
we can inline a worker when bundling our own code - this is what we did in case of JSV back in the day
yes, if we inline the worker's code You can find some of the answers here as well #575 (comment) |
I can take care of it, as this kind of goes in our way when trying out some YJS stuff. |
🤔 why does the tab hang? There are not even any remote $refs in the stripe spec. How long does dereferencing take? |
If you confirm we have done everything we could - in a reasonable timeframe - to speed up I just want to avoid "throwing hardware" at a problem that could simply be optimized. |
Well, same. That's why I questioned the addition of json-schema-ref-parser in first place. We can try incorporating APIDevTools/json-schema-ref-parser#195 but still, it's going to take some time regardless. As said, the actual solution would be to avoid the dereferencing entirely. |
FWIW, 195 improves the situation. At least the tab no longer freezes. |
Then let's try wrapping up and incorporating that first. If the problem still persists we'll think about other options. By the way the entire problem is going to go away once we release the new TryIt. It drops the AFAIK the only thing that really needs dereferencing in elements is the RequestMaker because of this prism-based mocking. If we can drop prism, we can also drop the requirement that This also supports that a short term solution (like the PR you mention) would be enough, and investing a lot of work into workerifying things is not worth it. |
By the way in the studio use-case dereferencing actually takes place inside So I'm closing this issue, there's nothing we can do about the studio problem at the elements level and we are working to eliminate the requirement completely with #640 anyway. |
I agree with this and the rest of it 👍. |
Oh yeah, totally. If that is going away, we won't need to do anything. |
The text was updated successfully, but these errors were encountered: