Most users on HN might not be too interested in a Library such as this (and I must admit the demo page I'm linking to above probably doesn't do the best job of explaining the background or utility of such a package), but hopefully a few of you will find it interesting.<p>As I mention in the page, I was drawn to the issue when I noticed how much memory was being used when I pulled a large data set from one of our Oracle databases here at work and I thought to myself, "Self, is there any better options?".<p>My main goal with the application I'm still working on, is to create a database proxy API (so I can submit a JSON request to this PHP application with an actual SQL query, that could then prepared/sent to the Oracle database and the results returned as JSON back to the user). Lots of security-related stuff I'm working on as well to make it happen in a way that won't cause any issues for the database, but this particular subproblem related to memory usage took up a few weeks of my time as I looked into and experimented with using JSON strings directly, and then into GZIP strings (particularly because GZIP was going to be the final output in most cases with Content Negotiation).<p>All in all it was pretty fun to build the package and just run various performance tests so if you have any questions feel free to ask and I hope someone might be able to use this in their own projects too :-).<p>Enjoy!