About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
parallel
samual.uk
/
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
[READ-ONLY] Mirror of
https://github.com/samualtnorman/parallel
.
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
Version history of
src/
importInWorker.ts
April 2026
rename `WorkerData` to `ParallelWorkerData` to differentiate from `worker_threads.workerData` change the unique id to a nanoid make it so the parallel worker data is an object in the `worker_threads.workerData` by the id this means it's safer for the `workerData` to have other stuff
samual.uk
·
7mo ago
d2a594c9
Copied
Failed
Copy SHA
samual.uk
d2a594c9
Copied
Failed
Copy SHA
rename `WorkerData` to `ParallelWorkerData` to differentiate from `worker_threads.workerData` change the unique id to a nanoid make it so the parallel worker data is an object in the `worker_threads.workerData` by the id this means it's safer for the `workerData` to have other stuff
7mo ago
March 2026
rename `TaskMessage["path"]` to `moduleName`
samual.uk
·
7mo ago
c186587c
Copied
Failed
Copy SHA
samual.uk
c186587c
Copied
Failed
Copy SHA
rename `TaskMessage["path"]` to `moduleName`
7mo ago
make sure to decrement `taskCounts[workerIndex]` even if there's a `throw`
samual.uk
·
7mo ago
85d47821
Copied
Failed
Copy SHA
samual.uk
85d47821
Copied
Failed
Copy SHA
make sure to decrement `taskCounts[workerIndex]` even if there's a `throw`
7mo ago
accept string instead of `URL` and instead explicitly reject relative paths
samual.uk
·
7mo ago
e4a0efcb
Copied
Failed
Copy SHA
samual.uk
e4a0efcb
Copied
Failed
Copy SHA
accept string instead of `URL` and instead explicitly reject relative paths
7mo ago
improve DX by splitting `importInWorker()` into 2 calls this means the only 1 type parameter needs to be passed in and the `name` argument can be autocompleted
samual.uk
·
7mo ago
681038c4
Copied
Failed
Copy SHA
samual.uk
681038c4
Copied
Failed
Copy SHA
improve DX by splitting `importInWorker()` into 2 calls this means the only 1 type parameter needs to be passed in and the `name` argument can be autocompleted
7mo ago
simplify `TName` type argument
samual.uk
·
7mo ago
b61284bf
Copied
Failed
Copy SHA
samual.uk
b61284bf
Copied
Failed
Copy SHA
simplify `TName` type argument
7mo ago
replace `@samual/lib` with `@samual/types`
samual.uk
·
7mo ago
51631a2a
Copied
Failed
Copy SHA
samual.uk
51631a2a
Copied
Failed
Copy SHA
replace `@samual/lib` with `@samual/types`
7mo ago
terminate all workers if last task has finished
samual.uk
·
7mo ago
8afecf2e
Copied
Failed
Copy SHA
samual.uk
8afecf2e
Copied
Failed
Copy SHA
terminate all workers if last task has finished
7mo ago
lazily start all the workers before if this module was loaded but not actually used, the process wouldn't exit due to having a bunch of workers and listeners on those workers
samual.uk
·
7mo ago
5e0eb5cf
Copied
Failed
Copy SHA
samual.uk
5e0eb5cf
Copied
Failed
Copy SHA
lazily start all the workers before if this module was loaded but not actually used, the process wouldn't exit due to having a bunch of workers and listeners on those workers
7mo ago
switch from `Uint8Array` to `Uint32Array` for `taskCounts` lowers the chance of overflow
samual.uk
·
7mo ago
ea22c0b6
Copied
Failed
Copy SHA
samual.uk
ea22c0b6
Copied
Failed
Copy SHA
switch from `Uint8Array` to `Uint32Array` for `taskCounts` lowers the chance of overflow
7mo ago
September 2024
fix new type errors caused by updated typescript
samual.uk
·
2y ago
54b567e8
Copied
Failed
Copy SHA
samual.uk
54b567e8
Copied
Failed
Copy SHA
fix new type errors caused by updated typescript
2y ago
January 2024
now works when the parent is already a thread
samual.uk
·
2y ago
260aef47
Copied
Failed
Copy SHA
samual.uk
260aef47
Copied
Failed
Copy SHA
now works when the parent is already a thread
2y ago
fix hardcoded cpu count
samual.uk
·
2y ago
3610459e
Copied
Failed
Copy SHA
samual.uk
3610459e
Copied
Failed
Copy SHA
fix hardcoded cpu count
2y ago
make workers responsible for updating their own task count to avoid race conditions now that all the workers have a shared array buffer for seeing who's the least busy, a better metric than task count can probably be used
samual.uk
·
2y ago
8cb413a7
Copied
Failed
Copy SHA
samual.uk
8cb413a7
Copied
Failed
Copy SHA
make workers responsible for updating their own task count to avoid race conditions now that all the workers have a shared array buffer for seeing who's the least busy, a better metric than task count can probably be used
2y ago
thread to thread communication works it does `fibonacci(26)` in nearly 1.5 seconds
samual.uk
·
2y ago
e10f97c0
Copied
Failed
Copy SHA
samual.uk
e10f97c0
Copied
Failed
Copy SHA
thread to thread communication works it does `fibonacci(26)` in nearly 1.5 seconds
2y ago
thread to thread communication
samual.uk
·
2y ago
671fe984
Copied
Failed
Copy SHA
samual.uk
671fe984
Copied
Failed
Copy SHA
thread to thread communication
2y ago
can do `fibonacci(30)` in about 18 seconds
samual.uk
·
2y ago
c645312b
Copied
Failed
Copy SHA
samual.uk
c645312b
Copied
Failed
Copy SHA
can do `fibonacci(30)` in about 18 seconds
2y ago
recursive parallel for worker works (kind of)
samual.uk
·
2y ago
b16b7eb7
Copied
Failed
Copy SHA
samual.uk
b16b7eb7
Copied
Failed
Copy SHA
recursive parallel for worker works (kind of)
2y ago
first commit
samual.uk
·
2y ago
83b3e8cd
Copied
Failed
Copy SHA
samual.uk
83b3e8cd
Copied
Failed
Copy SHA
first commit
2y ago