@zuvia-software-solutions/code-mapper 2.3.4 → 2.3.5

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.
@@ -46,7 +46,8 @@ export const createWorkerPool = (workerUrl, poolSize) => {
46
46
  if (!fs.existsSync(workerPath)) {
47
47
  throw new Error(`Worker script not found: ${workerPath}`);
48
48
  }
49
- const size = poolSize ?? Math.min(8, Math.max(1, os.cpus().length - 1));
49
+ // Use 75% of cores — leaves headroom for main thread, OS, and other processes
50
+ const size = poolSize ?? Math.max(1, Math.floor(os.cpus().length * 0.75));
50
51
  const workers = [];
51
52
  for (let i = 0; i < size; i++) {
52
53
  workers.push(new Worker(workerUrl));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuvia-software-solutions/code-mapper",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",