dart-lang / dart-lang/native

[native_toolchain_c] Tool resolver caching

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
P4 package:native_toolchain_c type-code-health
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

Currently, the tool resolving logic has no caching, this means that tools that are resolved relative to another tool trigger a re-resolving of that tool.

This makes tool resolving slower than needed.

However, addressing this for normal use is low priority. We'd likely only look up a single compiler and potentially an archiver per invocation of a `build.dart`.

A possible way to address this would be to have a `ToolsCache` that can be threaded through the code like the `Logger`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.