mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 12:45:42 +02:00
fase 5
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 James M Snell and the Piscina contributors
|
||||
|
||||
Piscina contributors listed at https://github.com/jasnell/piscina#the-team and
|
||||
in the README file.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
# Tinypool - the node.js worker pool 🧵
|
||||
|
||||
> Piscina: A fast, efficient Node.js Worker Thread Pool implementation
|
||||
|
||||
Tinypool is a fork of piscina. What we try to achieve in this library, is to eliminate some dependencies and features that our target users don't need (currently, our main user will be Vitest). Tinypool's install size (38KB) can then be smaller than Piscina's install size (6MB when Tinypool was created, Piscina has since reduced it's size to ~800KB). If you need features like [utilization](https://github.com/piscinajs/piscina#property-utilization-readonly) or OS-specific thread priority setting, [Piscina](https://github.com/piscinajs/piscina) is a better choice for you. We think that Piscina is an amazing library, and we may try to upstream some of the dependencies optimization in this fork.
|
||||
|
||||
- ✅ Smaller install size, 38KB
|
||||
- ✅ Minimal
|
||||
- ✅ No dependencies
|
||||
- ✅ Physical cores instead of Logical cores with [physical-cpu-count](https://www.npmjs.com/package/physical-cpu-count)
|
||||
- ✅ Supports `worker_threads` and `child_process`
|
||||
- ❌ No utilization
|
||||
- ❌ No OS-specific thread priority setting
|
||||
|
||||
- Written in TypeScript, and ESM support only. For Node.js 18.x and higher.
|
||||
|
||||
_In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an [RFC](https://github.com/tinylibs/rfcs)_
|
||||
|
||||
## Docs
|
||||
Read **[full docs](https://github.com/tinylibs/tinypool#readme)** on GitHub.
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "tinypool",
|
||||
"type": "module",
|
||||
"version": "1.1.1",
|
||||
"packageManager": "pnpm@9.0.6",
|
||||
"description": "A minimal and tiny Node.js Worker Thread Pool implementation, a fork of piscina, but with fewer features",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/tinylibs/tinypool#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tinylibs/tinypool.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/tinylibs/tinypool/issues"
|
||||
},
|
||||
"keywords": [
|
||||
"fast",
|
||||
"worker threads",
|
||||
"thread pool"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.0.0 || >=20.0.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"vitest>tinypool": "link:./"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user