Closed presidentbeef closed 7 years ago
Each object has a "prototype" object attached which holds "instance" methods, if they are ever defined. However, most objects never need this object.
This patch removes default creation of prototype objects and instead creates them "on demand" when needed.
This speeds up some programs and definitely reduces memory use.
Each object has a "prototype" object attached which holds "instance" methods, if they are ever defined. However, most objects never need this object.
This patch removes default creation of prototype objects and instead creates them "on demand" when needed.
This speeds up some programs and definitely reduces memory use.