Closed tj closed 14 years ago
It's neat in respect to prototypal inheritance, but slow ATM (crappy benchmark, but illustrates):
Running 500000 times: - Pattern: 4445ms - Constructor: 24ms
http://gist.github.com/547641
seems quite a lot faster without Object.seal()
I removed seal and re-implemented with an internal "new" it's quite snappy now.
It's neat in respect to prototypal inheritance, but slow ATM (crappy benchmark, but illustrates):
http://gist.github.com/547641