Skip to content

Unify StopImpl and StopAndCollectImpl via StopCore template#293

Closed
szegedi wants to merge 9 commits intomainfrom
refactor/unify-stop-impl
Closed

Unify StopImpl and StopAndCollectImpl via StopCore template#293
szegedi wants to merge 9 commits intomainfrom
refactor/unify-stop-impl

Conversation

@szegedi
Copy link

@szegedi szegedi commented Mar 9, 2026

Summary

  • Extract the large block of identical setup/teardown logic from StopImpl and StopAndCollectImpl into a single StopCore template method
  • StopCore accepts a callable for the profile-building step, which is the only part that differs between the two methods
  • StopImpl and StopAndCollectImpl become thin wrappers (~10–15 lines each)
  • Net: 118 lines removed, 41 added

Test plan

  • Existing tests pass
  • Build succeeds (npm run build)

🤖 Generated with Claude Code

IlyasShabi and others added 9 commits March 3, 2026 15:44
Extract the common setup and teardown logic from both Stop methods into
a single StopCore template method that accepts a callable for the
profile-building step. The two public methods become thin wrappers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Overall package size

Self size: 1.98 MB
Deduped: 2.35 MB
No deduping: 2.35 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | source-map | 0.7.6 | 185.63 kB | 185.63 kB | | pprof-format | 2.2.1 | 163.06 kB | 163.06 kB | | p-limit | 3.1.0 | 7.75 kB | 13.78 kB | | node-gyp-build | 3.9.0 | 8.81 kB | 8.81 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@pr-commenter
Copy link

pr-commenter bot commented Mar 9, 2026

Benchmarks

Benchmark execution time: 2026-03-09 14:43:20

Comparing candidate commit 7994296 in PR branch refactor/unify-stop-impl with baseline commit 3ed4376 in branch ishabi/lazy-time-profiler.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 87 metrics, 33 unstable metrics.

Base automatically changed from ishabi/lazy-time-profiler to main March 10, 2026 17:31
@szegedi szegedi closed this Mar 10, 2026
@szegedi szegedi deleted the refactor/unify-stop-impl branch March 10, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants