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 +1 -1
- package/prebuilds/darwin-arm64/native-vector-store.node +0 -0
- package/prebuilds/darwin-x64/native-vector-store.node +0 -0
- package/prebuilds/linux-arm64/native-vector-store.node +0 -0
- package/prebuilds/linux-x64/native-vector-store.node +0 -0
- package/prebuilds/win32-x64/native-vector-store.node +0 -0
- package/src/vector_store_loader.cpp +1 -1
- package/src/vector_store_loader_adaptive.cpp +1 -1
- package/src/vector_store_loader_mmap.cpp +2 -2
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
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
|
+
}
|