diff --git a/CHANGELOG.md b/CHANGELOG.md index 255d36b9..6653e03b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,30 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [6.4.0](https://github.com/soulcraftlabs/brainy/compare/v6.3.2...v6.4.0) (2025-12-11) + +### ⚡ Performance + +**Optimized VFS directory operations for cloud storage (GCS, S3, Azure, R2)** + +**Issue:** `vfs.rmdir({ recursive: true })` took ~2 minutes for 15 files on GCS due to sequential operations. Each file deletion was a separate storage round-trip. + +**Solution:** Replace sequential loops with batch operations using existing optimized primitives: + +* **`rmdir()`**: Use `gatherDescendants()` + `deleteMany()` + parallel blob cleanup +* **`copyDirectory()`**: Use `gatherDescendants()` + `addMany()` + `relateMany()` +* **`move()`**: Inherits improvements from both (no code change needed) + +**PROJECTED Performance Improvement:** + +| Operation | Before | After | Improvement | +|-----------|--------|-------|-------------| +| rmdir 15 files | ~120s | ~15-30s | 4-8x faster | +| copy 15 files | ~120s | ~20-40s | 3-6x faster | +| move 15 files | ~240s | ~40-60s | 4-6x faster | + +Requested by: Soulcraft Workshop team (BRAINY-VFS-RMDIR-PERFORMANCE) + ### [6.3.2](https://github.com/soulcraftlabs/brainy/compare/v6.3.1...v6.3.2) (2025-12-09) diff --git a/package-lock.json b/package-lock.json index 7f1f3e75..69a57bc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@soulcraft/brainy", - "version": "6.3.2", + "version": "6.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@soulcraft/brainy", - "version": "6.3.2", + "version": "6.4.0", "license": "MIT", "dependencies": { "@aws-sdk/client-s3": "^3.540.0", diff --git a/package.json b/package.json index 3b83c5d0..155ad4d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soulcraft/brainy", - "version": "6.3.2", + "version": "6.4.0", "description": "Universal Knowledge Protocol™ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. Stage 3 CANONICAL: 42 nouns × 127 verbs covering 96-97% of all human knowledge.", "main": "dist/index.js", "module": "dist/index.js",