Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Recycle NpgsqlDataReader instances #1649
Look into recycling the reader of a given command rather than instantiating a new one for each Execute*, this would allow ExecuteNonQuery (and possibly the others) to be zero-allocation. Problems:
A different direction might be to remove the use of a reader in ExecuteNonQuery altogether. Unfortunately the reader currently performs some important logic that would have to be refactored out somehow - management of prepared statements on reception of the responses.