creationix / pattern

An experiment with my new prototypal style programming
30 stars 5 forks source link

Slow #1

Closed tj closed 14 years ago

tj commented 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

tj commented 14 years ago

seems quite a lot faster without Object.seal()

creationix commented 14 years ago

I removed seal and re-implemented with an internal "new" it's quite snappy now.