Repository navigation
Version 3.0 - #44
Merged
Merged
Version 3.0#44
Conversation
canceled, canceling, signaled, license, behavior, "right away" and "goes around again", in comments, test descriptions and the README. No public names change; the harness's local OwnCancelled key becomes OwnCanceled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops comments that restated the code, described behavior that no longer exists, or explained a bug's history, and shortens the rest. Comments that explain a non-obvious why are kept. No code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops references to behavior and bugs that no longer exist ("used to", "before the fix") and shortens the rest. No test changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e pk variables A bare FilePath only finds an .exe: Windows doesn't use PATHEXT there, so a .cmd wrapper such as npm has to be written as npm.cmd. And inside a worker runspace, a plain callback can also see the kit's own variables, all pk-prefixed, so the README no longer says it never sees the kit's internals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Header says Version 3.0 and names PowerShell 7. Help and README now cover what 3.0 changed: bare names only find .exe files, a tree kill counts even if part of the tree survives, a third Ctrl+C still kills the engines' programs, callbacks should leave with return, the dispatcher's output rule has its exceptions, and batch-file quoting needs the list form. Examples pass Arguments as a list. The README's argument rules are split into a list, and it now says it describes 3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… quote doubled Each engine sets its callback-warning prefix once, and call sites pass only the parameter name. The continue/break tests now check each warning names the right engine and parameter. The README said a quote reaches a .bat/.cmd as one argument without noting that the batch file's own %1/%~1 sees it doubled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Calling the continue/break wrapper function for every per-job callback more than doubled the dispatcher's own time per job on Windows PowerShell 5.1. The callbacks that run per job, per pass or per result now do the do/while inline; the shared warning is Write-PkCallbackLoopWarning. Adds continue/break tests for -JobPollCompleted and -JobFinalize during an abort's graceful wait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets the version to 3.0 and brings the docs and comments in line with what 3.0 does, plus two internal changes: callback warning names in one place, and a speed fix for the dispatcher on 5.1.
What changed
ParallelKit.ps1now saysVersion 3.0and names PowerShell 7 alongside 5.1. The README says it describes 3.0..exe, so a.cmdwrapper must be written out (npm.cmd).pk-prefixed variables.return.Arguments."passed to a.bat/.cmdshows up doubled in the batch file's own%1/%~1. A program it passes%*on to gets it back as one quote.Argumentsas a list. The README's argument rules are split into a list.ProcessDispatch:,Invoke-PkRunspaceJobs:,Invoke-PkProcessBatch:), and each call site names only the parameter, where before about 20 call sites each spelled out the full name. The warnings read the same as before.continue/break, more than doubled the dispatcher's own time per job on 5.1 (the harness's 20,000-job benchmark: 2.7 s before, 6.3 s after, locally). Callbacks that run per job, per pass or per result (-JobStarter,-JobPollCompleted,-JobFinalize, the dispatcher's-PollCallback,-ResultHandler,-OnComplete) now catch it inline, which brings the benchmark back to 2.8 s. The other callbacks still go through the wrapper.How it was tested
The harness passes on Windows PowerShell 5.1 and PowerShell 7 (457 assertions each), including the check that every public function has help for itself and each parameter. The
continue/breaktests now also check that each warning names the right engine and parameter, and cover-JobPollCompletedand-JobFinalizein an abort's graceful wait, which has its own inlined copy. Removing the catch from that copy fails those new tests.🤖 Generated with Claude Code