Skip to content

Measure TypeScript transform latency - #145

Draft
noise64 wants to merge 7 commits into
mainfrom
gol-417-typescript-transform-latency
Draft

Measure TypeScript transform latency#145
noise64 wants to merge 7 commits into
mainfrom
gol-417-typescript-transform-latency

Conversation

@noise64

@noise64 noise64 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor
  • resolves https://linear.app/golem-cloud/issue/GOL-417/measure-and-mitigate-uninterruptible-typescript-transform-latency
  • adds a manual, report-validated latency suite for inline, entry, ESM, prepared ESM, CommonJS, and direct TypeScript transformation across P2/P3 and strip/transform modes
  • records the requested 4/16/64 KiB historical profiles; generated declarations and suffixes make the largest actual inputs 65,602–65,637 bytes
  • scopes the accepted 25 ms native-transform bound to the recorded three-sample macOS arm64 profiles; all direct-API maxima are at most 20.77 ms
  • shows that prepared ESM reproduces nearly all of the roughly 11-second strip-mode ESM delay in the recorded profiles, leaving current phase profiling and mitigation with GOL-347 / PR Profile TypeScript execution and reduce module-resolution probes (GOL-347, GOL-350) #134
  • clarifies that timeout deadlines and cancellation timers are armed before synchronous transformation, while cancellation is delivered only after the outer runtime regains control
  • preserves the original workload capture commit, report input hashes, component identities, and timing data instead of relabeling historical measurements as current
  • makes run.sh --check validate report contracts and the complete P2/P3 matrix, while run.sh --check-current explicitly detects whether a new measurement capture is required
  • integrates current main normally and changes no production runtime behavior

@noise64
noise64 changed the base branch from gol-418-single-cjs-ts-transform to main September 4, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant