性能优化

一次php应用的优化实践

分类 PHP, WEB开发, 性能优化   星期三, 6 四月 2011   dick
之前做过的一次优化实践,最近翻出来看看,有些通用的优化手段还是可以复用的。系统跑得时间长了,总会出现这样那样的问题和瓶颈,有了问题不可怕,我们有“打虎”的家伙事儿--无非就是定位问题->分析问题->提出解决方案->实践->结果反馈->总结再优化。 问题描述:系统采用 PHP5 + Zend framework 开发...

使用nginx+squid模式

分类 WEB开发, 性能优化, 服务器   星期六, 26 二月 2011   dick
为什么要使用nginx+squid模式? 1. nginx有多种hash方式,可以根据url做hash,同一个url命中同一个squid,提升squid的命中率 2. nginx使用epoll模型,网络io能力强,单机可以保持更多的长连接。nginx+squid在公网处理能力强于单独的squid,但是内网差别不大。 3. nginx比squid稳定,加一层nginx后在squid宕机之后可以直接转发给后台...

Google Instant Previews: Under the hood(转载)

分类 Ajax, Caching, Javascript, 性能优化   星期二, 16 十一月 2010   randy
If you’ve used Google Search recently, you may have noticed a new feature that we’re calling Instant Previews. By clicking on the (sprited) magnifying glass icon next to a search result you see a preview of that page, often with the relevant content highlighted. Once activated, you can mouse...

web caching相关文章

分类 Caching, 性能优化, 经验分享   星期四, 27 八月 2009   moon
Articles on Web Caching Stephen Pierzchala Caching for Performance — NEW! Caching and Compression for Performance Caching for Performance — Stephen Pierzchala Caching for Performance (Presentation) — Stephen Pierzchala Web Caching Sites Squid Proxy Cache Mark Nottingham's Site...

ie6下重复加载图片问题

分类 Caching, HTML/CSS, Javascript, 性能优化   星期四, 27 八月 2009   penny
今天遇到这么一个问题,IE6,在window.onload里用innerHTML动态插入图片,结果这些图片都忽略了本地缓存策略,发出N多个304请求。   于是乎我换了一个写法,在innerHTML里不使用img,而是在innerHTML新添加的HTML标签中使用CSS样式来导入图片,但问题依旧...