Description
User @nank1ro reported they see 30s timings when analyzing https://github.com/nank1ro/flutter-shadcn-ui repo from command line using dart analyze
. Doing dart analyze
twice shows the same ~30s timings on both runs - which is unexpected. User is using M1 2020 Mac. They also report bad IDE experience where it takes multiple minutes to finish analysis on large projects.
I have asked them to purge ~/.dartServer
and that changed the picture for CLI run: second run took only 2s, which is more inline with what I would have expected. This did not translate to IDE experience improvements - closing and reopening IDE (VS Code) still suffers from long initial analysis.
I wonder if the analysis cache got into some wrong state somehow? Is there a way to diagnose this?
Twitter thread is https://twitter.com/nank1ro/status/1785963202062237773