@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.
@@ -4242,7 +4242,11 @@ class FileStorage {
4242
4242
  this.chunkSize = opts.chunkSize ?? 4 * 1024 * 1024;
4243
4243
  this.dataShards = opts.dataShards ?? 4;
4244
4244
  this.parityShards = opts.parityShards ?? 2;
4245
- this.concurrency = Math.max(1, opts.concurrency ?? 8);
4245
+ // Shard reads coalesce into batches, so this is no longer a cap on
4246
+ // requests — it is how many hashes are available to batch together. Too
4247
+ // low and each batch is small and serial, which is strictly worse than
4248
+ // not batching at all.
4249
+ this.concurrency = Math.max(1, opts.concurrency ?? 16);
4246
4250
  this.rsWasmModule = opts.rsWasmModule;
4247
4251
  if (this.chunkSize < 1)
4248
4252
  throw new Error("FileStorage: chunkSize must be >= 1 byte");
@@ -5496,7 +5500,7 @@ function base64UrlDecode(s) {
5496
5500
  * expect (and isn't serving a stale cached bundle). Keep this in sync with
5497
5501
  * `package.json` `version`.
5498
5502
  */
5499
- const VERSION = "0.14.0-alpha.4";
5503
+ const VERSION = "0.14.0-alpha.5";
5500
5504
 
5501
5505
  /**
5502
5506
  * `HttpClient` — the one place the unified {@link Client} talks to the
@@ -12417,7 +12421,10 @@ const MAX_DEPTH = 64;
12417
12421
  * project does not open a request per directory. Browsers cap concurrency per
12418
12422
  * origin anyway, so a larger number mostly moves the queue.
12419
12423
  */
12420
- const WALK_CONCURRENCY = 8;
12424
+ /** Directory records fetched in parallel while walking. Raised alongside the
12425
+ * shard read concurrency: the walk is what discovers the files whose shards
12426
+ * then batch together, so a narrow walk throttles everything downstream. */
12427
+ const WALK_CONCURRENCY = 24;
12421
12428
  /**
12422
12429
  * `Promise.all` with a ceiling, preserving input order.
12423
12430
  *