Add a performance example and reduce garbage produced.