joybro/node-dogstatsd — pull request #7 by sudpaw (2014-10-30 11:33:45+00:00)
Title: Optimize

Attempt at further optimizing the library.

# Added a local reference to the math.random library -> Reduce scope traversal
http://codeutopia.net/blog/2009/04/30/optimizing-javascript-for-extreme-performance-and-low-memory-consumption/

# Change for...in loops to Object.Keys
http://jsperf.com/object-keys-foreach-vs-for-in-v2/2

# Reduced unnecessary local variables and references

# Formatting