bestiejs / json3

A JSON polyfill. No longer maintained.
https://bestiejs.github.io/json3
Other
1.02k stars 150 forks source link

Pre-compile the internal `serialize` method #13

Closed ghost closed 12 years ago

ghost commented 12 years ago

Lo-Dash uses pre-compilation to achieve a significant performance boost. We could use a similar technique in JSON 3 to optimize the serialize method (particularly the date serialization subroutine).