Implement binary PostgreSQL interface instead of the current string interface
This is an option for future optimisation which would significantly improve the performance. But, before we can do this we need to make sure that the data manipulations can match the current string API performance (which is still not the case at the moment).
The benefits: No string parsing overhead, no extra memory allocation, no encoding/decoding values by PostgreSQL, faster data transfer (more compact), ...
Edited by Jaroslav Guenther