Files
rose-ash/hosts/ocaml
giles 8e1870246d sx-http: OCaml 5 domain pool + per-request env safety
Domain pool with N workers (Domain.recommended_domain_count), mutex+
condition queue for request dispatch. Each domain has its own minor
heap — GC pauses don't block other requests.

expand-components? bound once at startup (always true in HTTP mode)
instead of per-request mutation. Shell rendering uses native
Sx_render.render_to_html for domain safety.

Performance (warm, 2 worker domains, 2MB RSS):
  Homepage:  107-194ms TTFB (Quart: 202ms) — faster
  Geography: 199-306ms TTFB (Quart: 144ms) — close
  Reactive:  351-382ms TTFB (Quart: 187ms) — 2x slower
  Concurrent: 5.88 req/s at c=5 (Quart: 6.8 req/s)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 17:00:13 +00:00
..