• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dart-lang / native / 15063664918 / 16 – data_assets_windows
76%
main: 76%

Build:
DEFAULT BRANCH: main
Ran 16 May 2025 08:11AM UTC
Files 5
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2025 08:02AM UTC coverage: 42.229%. First build
data_assets_windows – 15063664918.16

push

github

web-flow
[hooks_runner] Optimize the no hooks path (#2302)

Bug: https://github.com/dart-lang/native/issues/2236

Optimize the code paths for when there are no hooks (speeds up standalone Dart).

* Return early in various places, and check if there are hooks at all as first thing.
* Write JSON encoding instead of YAML encoding. 17 ms -> 1 ms on a small JSON object. (And JSON is valid YAML.)

After this the longest running part in `dartdev` is loading the `package_config.json`: 10 ms. We can't really avoid this because we need that info to check whether we have any hooks that need running. And the `package_config.json` isn't already loaded by dartdev (in contrast to `flutter_tools` where we have a `PackageConfig` object available). dartdev delegates compilation to `package:pub`(!) via `getExecutableForCommand` and that API uses the package config file path. https://github.com/dart-lang/pub/issues/4067

144 of 341 relevant lines covered (42.23%)

1.03 hits per line

Source Files on job data_assets_windows - 15063664918.16
  • Tree
  • List 5
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15063664918
  • 6e0edca1 on github
  • Next Job for on main (#15090337171.7)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc