@forzalabs/remora 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,8 +150,8 @@ class ExecutorOrchestratorClass {
150
150
  if (fileSize < Constants_1.default.defaults.MIN_FILE_SIZE_FOR_PARALLEL) {
151
151
  return [{ start: 0, end: fileSize, isFirstChunk: true, fileUri }];
152
152
  }
153
- // Calculate optimal chunk count based on file size and CPU cores
154
- const cpus = numChunks !== null && numChunks !== void 0 ? numChunks : os_1.default.cpus().length;
153
+ // Calculate optimal chunk count based on file size and CPU cores (-1 cause it is used by the main thread)
154
+ const cpus = numChunks !== null && numChunks !== void 0 ? numChunks : (os_1.default.cpus().length - 1);
155
155
  const maxChunksBySize = Math.floor(fileSize / Constants_1.default.defaults.MIN_CHUNK_SIZE);
156
156
  const effectiveChunks = Math.min(cpus, maxChunksBySize);
157
157
  if (effectiveChunks <= 1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forzalabs/remora",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A powerful CLI tool for seamless data translation.",
5
5
  "main": "index.js",
6
6
  "private": false,