google / google/wireit

Watch mode optimizations

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.4k
Forks
128
Avg merge
4d 10h
Merged PRs (30d)
4

Description

- No need to re-analyze or re-create watchers unless a package.json file has changed (and watchers only need to be re-created if a `files` array changed, and even then only the affected ones do).

- We can share the `CachingPackageJsonReader` instance across analysis. File change events tell us when a cached result is stale.

- We can cache glob results in memory. File change events tell us when a cached result is stale.

- We can cache file hashes in memory. File change events tell us when a cached result is stale.

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.