@muhkoo/connect 0.14.0-alpha.4 → 0.14.0-alpha.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.
- package/dist/browser/index.js +10 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/server/index.js +10 -3
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -3235,7 +3235,7 @@ function base64UrlDecode(s) {
|
|
|
3235
3235
|
* expect (and isn't serving a stale cached bundle). Keep this in sync with
|
|
3236
3236
|
* `package.json` `version`.
|
|
3237
3237
|
*/
|
|
3238
|
-
const VERSION = "0.14.0-alpha.
|
|
3238
|
+
const VERSION = "0.14.0-alpha.5";
|
|
3239
3239
|
|
|
3240
3240
|
/**
|
|
3241
3241
|
* `HttpClient` — the one place the unified {@link Client} talks to the
|
|
@@ -7653,7 +7653,11 @@ class FileStorage {
|
|
|
7653
7653
|
this.chunkSize = opts.chunkSize ?? 4 * 1024 * 1024;
|
|
7654
7654
|
this.dataShards = opts.dataShards ?? 4;
|
|
7655
7655
|
this.parityShards = opts.parityShards ?? 2;
|
|
7656
|
-
|
|
7656
|
+
// Shard reads coalesce into batches, so this is no longer a cap on
|
|
7657
|
+
// requests — it is how many hashes are available to batch together. Too
|
|
7658
|
+
// low and each batch is small and serial, which is strictly worse than
|
|
7659
|
+
// not batching at all.
|
|
7660
|
+
this.concurrency = Math.max(1, opts.concurrency ?? 16);
|
|
7657
7661
|
this.rsWasmModule = opts.rsWasmModule;
|
|
7658
7662
|
if (this.chunkSize < 1)
|
|
7659
7663
|
throw new Error("FileStorage: chunkSize must be >= 1 byte");
|
|
@@ -12148,7 +12152,10 @@ const MAX_DEPTH = 64;
|
|
|
12148
12152
|
* project does not open a request per directory. Browsers cap concurrency per
|
|
12149
12153
|
* origin anyway, so a larger number mostly moves the queue.
|
|
12150
12154
|
*/
|
|
12151
|
-
|
|
12155
|
+
/** Directory records fetched in parallel while walking. Raised alongside the
|
|
12156
|
+
* shard read concurrency: the walk is what discovers the files whose shards
|
|
12157
|
+
* then batch together, so a narrow walk throttles everything downstream. */
|
|
12158
|
+
const WALK_CONCURRENCY = 24;
|
|
12152
12159
|
/**
|
|
12153
12160
|
* `Promise.all` with a ceiling, preserving input order.
|
|
12154
12161
|
*
|