News for hackers. Stuff that matters.
Re:How Javascript Prototypal Inheritance Really works by joske2 on Saturday May 28, 2011 @02:45PM (#2594962)
According to that benchmark native Object.create is faster than constructor functions on Firefox 4.

That said, I wouldn't base my coding decisions on those kinds of micro benchmarks. They say nothing about the impact on actual javascript applications. Using new instead of Object.create may prove completely irrelevant in an application where you are constantly updating the DOM or are doing lots of network calls.

There are no comments on this comment yet.