timrwood/moment — pull request #317 by timrwood (2012-05-24 22:33:59+00:00)
Title: Feature/cached formatter

Not ready to pull in, opening discussion.

TODO: inline L LL LLL LLLL LT tokens.

Some speed tests:

http://jsperf.com/date-formatting/8
http://jsperf.com/momentjs-cached-format-functions

All `make test-moment` tests are passing now, need to add support for `L LL LLL LLLL LT` for all tests to pass.

File size difference
-108b minified
+75b gzipped

Though there are probably some byte squeezing techniques we could add.