hdbc/hdbc-postgresql — pull request #25 by Paczesiowa (2012-12-12 15:06:05+00:00)
Title: optimize cleanUpBSNulls function

this uses a lot less memory than the concatMap one. in our app there are queries with length of 10k chars (inserting files to db) and the concatMap one was creating huge amounts of small bytestrings, which would consume additional 1gb of memory and a few extra seconds for gc.