faster, but more importantly does not leak memory. Still needs more work though, per my recent note to pgsql-hackers.