Skip to content

perf: hoist generated wrapper binding runtime#267

Merged
BridgeAR merged 2 commits into
nodejs:mainfrom
BridgeAR:BridgeAR/2026-07-03-hoist-wrapper-binder
Jul 7, 2026
Merged

perf: hoist generated wrapper binding runtime#267
BridgeAR merged 2 commits into
nodejs:mainfrom
BridgeAR:BridgeAR/2026-07-03-hoist-wrapper-binder

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Jul 3, 2026

Copy link
Copy Markdown
Member

This significantly reduces loader startup cost by compiling the generated wrapper bind/retry machinery once instead of once per wrapper module. On the large mixed ESM/CJS app benchmark, wrapper source fell from 3572 KB to 1559 KB and IITM added overhead fell from 218.3 ms to 179.7 ms (-17.7%).

BridgeAR added 2 commits July 6, 2026 19:05
This significantly reduces loader startup cost by compiling the wrapper bind/retry machinery once instead of once per generated wrapper. On the large mixed ESM/CJS app benchmark, wrapper source fell from 3572 KB to 1559 KB and IITM added overhead fell from 218.3 ms to 179.7 ms (-17.7%).
@BridgeAR BridgeAR force-pushed the BridgeAR/2026-07-03-hoist-wrapper-binder branch from 7bf7bb8 to dd6cdb3 Compare July 6, 2026 17:06
@BridgeAR BridgeAR marked this pull request as ready for review July 6, 2026 17:06
@BridgeAR BridgeAR requested review from AbhiPrasad, bengl, jsumners-nr, timfish and trentm and removed request for jsumners-nr and timfish July 6, 2026 17:06
@BridgeAR BridgeAR merged commit 4f41140 into nodejs:main Jul 7, 2026
30 checks passed
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.

3 participants