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
In the above example, the __share-wrapped function in whatever module loads first is immediately executed. But the functions in the other 2 chunks are not executed immediately, and in fact aren't executed at all.
The whole point of inline chunks is that you don't know which __share will execute first (if you did, it wouldn't need to be shared, and could be static linked).
So forcing every function to be eagerly parsed (PIFE technique) is probably a de-optimization - in most cases, V8's default behavior of skipping parsing these functions is ideal, as mostly they'll never be executed.
I think
So forcing every function to be eagerly parsed (PIFE technique) is probably a de-optimization
makes sense. So probably no PIRF optimization. @sapphi-red cc
yeah, I think @overlookmotel have got a point. It might be worth paying the cost for subsequent navigations as the first one might be the most important, but probably not worth as a default.
Activity
sapphi-red commentedon Aug 24, 2026
yeah, I think @overlookmotel have got a point. It might be worth paying the cost for subsequent navigations as the first one might be the most important, but probably not worth as a default.
hyfdev commentedon Nov 4, 2026
It seems that applying PIFE is positive in the most of cases. See rolldown/rolldown#11282 (comment) for reason.