You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 97f6407
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,15 +272,16 @@ Full tunnel mode (`"mode": "full"`) routes **all** traffic end-to-end through Ap
272
272
Each Apps Script batch request takes ~2 seconds round-trip. In full mode, `mhrv-rs` runs a **pipelined batch multiplexer** that fires multiple batch requests concurrently without waiting for the previous one to return. The number of in-flight batches (the *pipeline depth*) scales directly with the number of deployment IDs you configure:
273
273
274
274
```
275
-
pipeline_depth = number_of_script_ids (clamped to 2..12)
| 12 | 12 |~0.17s | Maximum — diminishing returns past this |
283
+
| 12 | 12 |~0.17s | Sweet spot for most users |
284
+
| 20 | 20 |~0.10s | Multi-account setups |
284
285
285
286
More deployments = more concurrent batches = lower per-session latency. Each batch round-robins across your deployment IDs, so the load is spread evenly and you're less likely to hit a single deployment's quota ceiling.
286
287
@@ -630,15 +631,16 @@ Donations cover hosting, self-hosted CI runner costs, and continued maintenance.
630
631
هر درخواست دستهای (`batch`) به `Apps Script` حدود ۲ ثانیه طول میکشد. در حالت `full`، برنامه یک **لولهٔ موازی** (`pipeline`) اجرا میکند که چند درخواست دستهای را همزمان میفرستد بدون اینکه منتظر پاسخ قبلی بماند. تعداد درخواستهای همزمان مستقیماً با تعداد `Deployment ID`ها رابطه دارد:
631
632
632
633
```
633
-
عمق لوله = تعداد Deployment IDها (حداقل ۲، حداکثر ۱۲)
634
+
عمق لوله = تعداد Deployment IDها (حداقل ۲)
634
635
```
635
636
636
637
| تعداد Deployment | عمق لوله | فاصلهٔ مؤثر بین دستهها ||
بیشتر `Deployment` = بیشتر درخواست همزمان = تأخیر کمتر برای هر نشست. هر دسته بین `ID`ها چرخش میکند (`round-robin`)، پس بار بهطور یکنواخت توزیع میشود.
## Performance: deployment count and pipeline depth
84
84
85
-
The mhrv-rs client runs a pipelined batch multiplexer in full mode. Each Apps Script round-trip takes ~2s, so the client fires multiple batch requests concurrently — the pipeline depth equals the number of configured script deployment IDs (clamped 2..12).
85
+
The mhrv-rs client runs a pipelined batch multiplexer in full mode. Each Apps Script round-trip takes ~2s, so the client fires multiple batch requests concurrently — the pipeline depth equals the number of configured script deployment IDs (minimum 2, no upper cap).
86
86
87
87
More deployments = more concurrent batches hitting the tunnel-node = lower per-session latency. With 6 deployments, a new batch arrives every ~0.3s instead of every 2s.
0 commit comments