TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: PHP Compressed Strings Library

2 pointsby orwareover 8 years ago

1 comment

orwareover 8 years ago
Most users on HN might not be too interested in a Library such as this (and I must admit the demo page I&#x27;m linking to above probably doesn&#x27;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, &quot;Self, is there any better options?&quot;.<p>My main goal with the application I&#x27;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&#x2F;sent to the Oracle database and the results returned as JSON back to the user). Lots of security-related stuff I&#x27;m working on as well to make it happen in a way that won&#x27;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!
评论 #12586562 未加载