spullara/jstacker — pull request #2 by cstivers78 (2012-06-13 01:35:47+00:00)
Title: Added "parseDate: String=>Date". It will create a new SimpleDateFormat for every call.

Added "parseDate: String=>Date". It will create a new SimpleDateFormat for every call, can be optimized to use a thread local instance, or Joda-Time (thread-safe) formatter. I prefer Joda-Time for anything date-time related, make life easier.

parseDate is a function, rather than a method. The difference is methods are implicitly converted to functions when passed to functions expecting a function. So, in turn, this removes an implicit conversion, probably not saving much wrt to performance, but it is a couple ticks... 1 small change is insignificant, many small changes change the world. :)