@muhkoo/connect 0.14.0-alpha.6 → 0.14.0-alpha.7

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.
@@ -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.6";
3238
+ const VERSION = "0.14.0-alpha.7";
3239
3239
 
3240
3240
  /**
3241
3241
  * `HttpClient` — the one place the unified {@link Client} talks to the
@@ -7656,17 +7656,20 @@ class FileStorage {
7656
7656
  // Shard reads coalesce into batches, so this is not a cap on requests —
7657
7657
  // it is how many hashes are available to batch together.
7658
7658
  //
7659
- // 8, not 16, and that is measured rather than reasoned. Raising it to 16
7660
- // (with the walk at 24) made a 519-file project load SLOWER: median 18.4s
7661
- // against 14.9s over three runs each. More hashes pending fills batches
7662
- // closer to the 256 cap, and a bigger batch is one large payload that has
7663
- // to arrive and decode completely before ANY of its files resolve — so
7664
- // the extra concurrency buys chunkier round trips with less overlap
7665
- // rather than more parallelism.
7659
+ // 8 because nothing measurable argues for more.
7666
7660
  //
7667
- // There is a floor as well as a ceiling: too low and each batch is small
7668
- // and serial, which is worse than not batching at all. 8 sits between the
7669
- // two, and moving it in either direction should be measured, not argued.
7661
+ // Raising it to 16 (walk at 24) looked 23% slower over three runs each,
7662
+ // and reverting looked like it restored the win — until a third set of
7663
+ // three landed on the same numbers as the RAISED setting. Pooled, the
7664
+ // configurations are indistinguishable: the run-to-run spread on a
7665
+ // 519-file project is 13.9-20.9s, far wider than any difference between
7666
+ // them. Three samples could not have resolved it and should not have
7667
+ // been trusted to.
7668
+ //
7669
+ // What IS established is the floor: too low and each batch is small and
7670
+ // serial, which is worse than not batching at all. Above that the setting
7671
+ // stops mattering at this scale, so it stays at the simpler value. Moving
7672
+ // it needs a sample large enough to see past that spread.
7670
7673
  this.concurrency = Math.max(1, opts.concurrency ?? 8);
7671
7674
  this.rsWasmModule = opts.rsWasmModule;
7672
7675
  if (this.chunkSize < 1)
@@ -12164,9 +12167,10 @@ const MAX_DEPTH = 64;
12164
12167
  */
12165
12168
  /** Directory records fetched in parallel while walking.
12166
12169
  *
12167
- * Back to 8 with the shard read concurrency: raising both together measured
12168
- * SLOWER on a 519-file project (median 18.4s against 14.9s), because fuller
12169
- * batches are chunkier round trips rather than more parallelism. */
12170
+ * Kept at 8 alongside the shard read concurrency. Raising both to 24/16 was
12171
+ * neither better nor worse once enough samples were taken — the spread between
12172
+ * runs is wider than the difference between the settings — so this stays at the
12173
+ * simpler value. See FileStorage's note. */
12170
12174
  const WALK_CONCURRENCY = 8;
12171
12175
  /**
12172
12176
  * `Promise.all` with a ceiling, preserving input order.