TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: PHP Compressed Strings Library

2 点作者 orware超过 8 年前

1 comment

orware超过 8 年前
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 未加载