Description
We've started to track dartdoc
run elapsed times on pub.dev, and on the recent runtimes, the following patterns emerged:
-
The top-1000 slowest runs were using Flutter SDK 94.2% of the time (89% in top-100).
-
The longest to generate is
package:colorz
which only has a single (but long) Dart file and a simple class reference pattern. It seems that there may be some opportunities for improvements there by caching some calculations wrt. theColor
reference? Random sampling of slow packages shows that similar patterns (e.g. single file with lots ofint
const values). -
Another slow pattern is having a large number of public libraries like in
package:ews
. -
A more surprising pattern seems to be in
package:niku
, where both the number of libraries and the source code is relatively small, but uses extension methods a lot.
I've attached the list of slow packages to this issue, in the order of decreasing run times: slow.txt
The above patterns were observed with "dart": "2.12.2", "flutter": "2.0.4", "dartdoc": "0.42.0"
.