yext/glog — pull request #1 by ttacon (2014-09-22 23:36:12+00:00)
Title: Type assertion instead of switching on type

Since this is only checking for one type, it's a little faster to just do a type assertion (also it's a little more readable as there's no default). Just thought y'all might be interested!

Some (ugly) benchmarking:
https://gist.github.com/ttacon/757bdf2b6ae5bc1322c7