Extract prototype
from internal slots
#578
Labels
discussion
Issues needing more discussion
execution
Issues or PRs related to code execution
performance
Performance related changes and issues
technical debt
Milestone
What is the problem with the current implementation?
The problem is that
prototype
instance is stored in theinternal_slots
the internal slots are stored asHashMap<String, Value>
, this is slow, every time we want to access prototype we have to do hash lookup and the use it.Changes:
__proto__
toObject
, this should optimize prototype chain lookupThe text was updated successfully, but these errors were encountered: