@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.
- package/dist/browser/index.js +18 -14
- package/dist/browser/index.js.map +1 -1
- package/dist/server/index.js +18 -14
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -4245,17 +4245,20 @@ class FileStorage {
|
|
|
4245
4245
|
// Shard reads coalesce into batches, so this is not a cap on requests —
|
|
4246
4246
|
// it is how many hashes are available to batch together.
|
|
4247
4247
|
//
|
|
4248
|
-
// 8
|
|
4249
|
-
// (with the walk at 24) made a 519-file project load SLOWER: median 18.4s
|
|
4250
|
-
// against 14.9s over three runs each. More hashes pending fills batches
|
|
4251
|
-
// closer to the 256 cap, and a bigger batch is one large payload that has
|
|
4252
|
-
// to arrive and decode completely before ANY of its files resolve — so
|
|
4253
|
-
// the extra concurrency buys chunkier round trips with less overlap
|
|
4254
|
-
// rather than more parallelism.
|
|
4248
|
+
// 8 because nothing measurable argues for more.
|
|
4255
4249
|
//
|
|
4256
|
-
//
|
|
4257
|
-
// and
|
|
4258
|
-
//
|
|
4250
|
+
// Raising it to 16 (walk at 24) looked 23% slower over three runs each,
|
|
4251
|
+
// and reverting looked like it restored the win — until a third set of
|
|
4252
|
+
// three landed on the same numbers as the RAISED setting. Pooled, the
|
|
4253
|
+
// configurations are indistinguishable: the run-to-run spread on a
|
|
4254
|
+
// 519-file project is 13.9-20.9s, far wider than any difference between
|
|
4255
|
+
// them. Three samples could not have resolved it and should not have
|
|
4256
|
+
// been trusted to.
|
|
4257
|
+
//
|
|
4258
|
+
// What IS established is the floor: too low and each batch is small and
|
|
4259
|
+
// serial, which is worse than not batching at all. Above that the setting
|
|
4260
|
+
// stops mattering at this scale, so it stays at the simpler value. Moving
|
|
4261
|
+
// it needs a sample large enough to see past that spread.
|
|
4259
4262
|
this.concurrency = Math.max(1, opts.concurrency ?? 8);
|
|
4260
4263
|
this.rsWasmModule = opts.rsWasmModule;
|
|
4261
4264
|
if (this.chunkSize < 1)
|
|
@@ -5510,7 +5513,7 @@ function base64UrlDecode(s) {
|
|
|
5510
5513
|
* expect (and isn't serving a stale cached bundle). Keep this in sync with
|
|
5511
5514
|
* `package.json` `version`.
|
|
5512
5515
|
*/
|
|
5513
|
-
const VERSION = "0.14.0-alpha.
|
|
5516
|
+
const VERSION = "0.14.0-alpha.7";
|
|
5514
5517
|
|
|
5515
5518
|
/**
|
|
5516
5519
|
* `HttpClient` — the one place the unified {@link Client} talks to the
|
|
@@ -12433,9 +12436,10 @@ const MAX_DEPTH = 64;
|
|
|
12433
12436
|
*/
|
|
12434
12437
|
/** Directory records fetched in parallel while walking.
|
|
12435
12438
|
*
|
|
12436
|
-
*
|
|
12437
|
-
*
|
|
12438
|
-
*
|
|
12439
|
+
* Kept at 8 alongside the shard read concurrency. Raising both to 24/16 was
|
|
12440
|
+
* neither better nor worse once enough samples were taken — the spread between
|
|
12441
|
+
* runs is wider than the difference between the settings — so this stays at the
|
|
12442
|
+
* simpler value. See FileStorage's note. */
|
|
12439
12443
|
const WALK_CONCURRENCY = 8;
|
|
12440
12444
|
/**
|
|
12441
12445
|
* `Promise.all` with a ceiling, preserving input order.
|