Grab perf changes from https://gist.github.com/dperini/729294.