We should implement inline caching for property lookups.
The basic idea is to use the shape system to cache the "location" of properties the first time we execute a non-computed MemberExpression
, and then reuse that location on subsequent executions.
This isn't entirely trivial of course, since JavaScript is a dynamic language where you can replace somebody's prototype's prototype etc, so this does need some extra validation and deoptimization logic.
Basically:
MemberExpression
, we can find the property in the same location. See this blog post for inspiration.Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too