这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Nov 16, 2025

Summary

Adds a new example examples/many.rs for profiling the resolver with many package resolution requests.

The example:

  • Walks the node_modules directory from the current working directory
  • Collects all package names (regular and scoped packages)
  • Filters out @types packages and dot directories (.bin, .cache, etc.)
  • Resolves each package using the resolver with ESM/browser configuration
  • Prints summary statistics (total packages, successful/failed resolutions)

Usage

cargo run --example many

This is useful for profiling resolver performance with realistic workloads.

🤖 Generated with Claude Code

@graphite-app
Copy link

graphite-app bot commented Nov 16, 2025

How to use the Graphite Merge Queue

Add the label merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@Boshen Boshen force-pushed the add-many-example branch 2 times, most recently from ec2bc98 to a0f3369 Compare November 16, 2025 10:05
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 16, 2025

CodSpeed Performance Report

Merging #836 will improve performances by 4.59%

Comparing add-many-example (5a42e31) with main (31ed0e0)1

Summary

⚡ 1 improvement
✅ 10 untouched
⏩ 5 skipped2

Benchmarks breakdown

Benchmark BASE HEAD Change
resolver_memory[multi-thread] 514.5 µs 491.9 µs +4.59%

Footnotes

  1. No successful run was found on main (5a42e31) during the generation of this report, so 31ed0e0 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

  2. 5 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Boshen Boshen added the merge label Nov 16, 2025
Copy link
Member Author

Boshen commented Nov 16, 2025

Merge activity

…836)

## Summary

Adds a new example `examples/many.rs` for profiling the resolver with many package resolution requests.

The example:
- Walks the `node_modules` directory from the current working directory
- Collects all package names (regular and scoped packages)
- Filters out `@types` packages and dot directories (`.bin`, `.cache`, etc.)
- Resolves each package using the resolver with ESM/browser configuration
- Prints summary statistics (total packages, successful/failed resolutions)

## Usage

```bash
cargo run --example many
```

This is useful for profiling resolver performance with realistic workloads.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@graphite-app graphite-app bot merged commit 5a42e31 into main Nov 16, 2025
12 checks passed
@graphite-app graphite-app bot deleted the add-many-example branch November 16, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants