You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
Deeply nested callbacks seem to slow performance greatly. A file like this takes 2+s to format on my machine and only a couple more layers are needed for a format to seemingly never complete.
I am pretty sure this is an issue on the printing side. I get syntax errors and type errors immediately so the parser doesn't appear to have any problem with code like this.
Additionally, adding more logic in deeper layers leads to pretty large increases. So having one additional line in the inner-most callback slows things down much more than one layer up (which is better than two layers up). This seems to be a ~linear increase based on which layer you're in. While adding layers seems to be quadratic.
The text was updated successfully, but these errors were encountered:
We saw this with deeply nested promises with custom resolution logic. It was handwritten - I think two levels less deep but lots more logic in it. ~7s to format ~400 lines.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Deeply nested callbacks seem to slow performance greatly. A file like this takes 2+s to format on my machine and only a couple more layers are needed for a format to seemingly never complete.
I am pretty sure this is an issue on the printing side. I get syntax errors and type errors immediately so the parser doesn't appear to have any problem with code like this.
Additionally, adding more logic in deeper layers leads to pretty large increases. So having one additional line in the inner-most callback slows things down much more than one layer up (which is better than two layers up). This seems to be a ~linear increase based on which layer you're in. While adding layers seems to be quadratic.
The text was updated successfully, but these errors were encountered: