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
I looked into this. You're right, the old formatter is very slow on deeply nested function expressions like this. Fortunately, on my machine, the new tall style formatter is about 200x faster on this example.
I'm going to go ahead and close this out because we're trying to not put much time into maintaining the old style.
If you want a workaround before you move to the new style (which should ship in 3.7), if you replace those => ... functions with { return ...; }, you'll get much better performance.
The tall style formatter does not halt when trying to format this code snippet:
The above snippet is quick minimal extraction that reproduces the problem I had formatting this code:
https://github.com/renggli/dart-more/blob/0a6238928da483da55273c61b9807f51946e79d4/lib/src/functional/types/curry.dart#L61-L72.
The text was updated successfully, but these errors were encountered: