dart-lang / dart-lang/webdev

Optimize traffic to the chrome debug target

Open
#977 0 comments 0 reactions 0 assignees View on GitHub
package:dwds
Dominant language
Dart
Stars
224
Forks
94
Avg merge
7h 14m
Merged PRs (30d)
2

Description

Possible related to #975, I notice that the package:dwds implementation makes more calls to the underlying chrome debug target than is necessary. For example, the implementation of `_getScript(()` (in `inspector.dart`) makes backend calls, irrespective of whether we've already populated information about the script before.

I think it would be valuable to audit the typical log of calls to the chrome debug target over a debug session, and see if there is any opportunity for caching of data, or other optimization.

cc @grouma

Contributor guide

Open the contributing guide

Research direction

Start in package:dwds, especially inspector.dart and the _getScript implementation. Capture and audit a typical debug-session log of calls to the underlying Chrome debug target, then determine whether previously populated script information can avoid repeated backend calls. Done means identifying and applying justified caching or another call-reduction optimization.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
backend, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.