native-vector-store 0.3.8 → 0.3.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-vector-store",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "High-performance local vector store with SIMD optimization for MCP servers",
5
5
  "main": "index.js",
6
6
  "types": "lib/index.d.ts",
@@ -93,7 +93,7 @@ void VectorStoreLoader::loadDirectory(VectorStore* store, const std::string& pat
93
93
  for (size_t w = 0; w < num_workers; ++w) {
94
94
  consumers.emplace_back([&]() {
95
95
  // Each thread needs its own parser with initial capacity
96
- simdjson::ondemand::parser doc_parser(16 * 1024 * 1024); // 16MB initial capacity
96
+ simdjson::ondemand::parser doc_parser(1 * 1024 * 1024 * 1024); // 16MB initial capacity
97
97
  // Set a larger maximum capacity for very large files (up to 512MB)
98
98
  doc_parser.allocate(512 * 1024 * 1024);
99
99
  FileData* data = nullptr;
@@ -133,7 +133,7 @@ void VectorStoreLoader::loadDirectoryAdaptive(VectorStore* store, const std::str
133
133
  for (size_t w = 0; w < num_workers; ++w) {
134
134
  consumers.emplace_back([&]() {
135
135
  // Each thread needs its own parser with initial capacity
136
- simdjson::ondemand::parser doc_parser(16 * 1024 * 1024); // 16MB initial capacity
136
+ simdjson::ondemand::parser doc_parser(1 * 1024 * 1024 * 1024); // 16MB initial capacity
137
137
  // Set a larger maximum capacity for very large files (up to 512MB)
138
138
  doc_parser.allocate(512 * 1024 * 1024);
139
139
  MixedFileData* data = nullptr;
@@ -68,7 +68,7 @@ void VectorStoreLoader::loadDirectoryMMap(VectorStore* store, const std::string&
68
68
  for (size_t w = 0; w < num_workers; ++w) {
69
69
  consumers.emplace_back([&]() {
70
70
  // Each thread needs its own parser with initial capacity
71
- simdjson::ondemand::parser doc_parser(16 * 1024 * 1024); // 16MB initial capacity
71
+ simdjson::ondemand::parser doc_parser(1 * 1024 * 1024 * 1024); // 16MB initial capacity
72
72
  // Set a larger maximum capacity for very large files (up to 512MB)
73
73
  doc_parser.set_max_capacity(512 * 1024 * 1024);
74
74
  MMapFileData* data = nullptr;
@@ -154,4 +154,4 @@ void VectorStoreLoader::loadDirectoryMMap(VectorStore* store, const std::string&
154
154
 
155
155
  // Finalize after batch load - normalize and switch to serving phase
156
156
  store->finalize();
157
- }
157
+ }