deckarep/golang-set — pull request #14 by joshlf13 (2014-06-13 04:02:13+00:00)
Title: Removed defers in thread-safe code for performance reasons.

- Recent testing (http://lk4d4.darth.io/posts/defer/) has shown that defer
incurs high overhead when compared to normal function calls. For this
reason, all defered calls have been instead placed as normal calls
just before the appropriate return statement. Benchmarking has shown
that this gives a significant performance improvement (for details,
run "go test -test.bench '.*'").