Fetch the repository succeeded.
Bolt - The Realtime Image Compress System
Bolt是一个实时裁剪压缩图片服务器,其比nginx的image_filter快2倍以上,主要是因为Bolt对一张图片只做一次处理,就算在处理图片的过程中,其他的客户端也在请求此图片,Bolt也能保证只有一个线程在处理此图片。
另外Bolt替换缓存机制,处理过的图片不再进行第二次处理,除非内存不足的时候,Bolt才会处理LRU算法来删除缓存中的图片,在启动Bolt的时候可以使用“--max-cache”启动参数来设置最大内存限制。Bolt使用LRU算法来淘汰缓存的图片,也就是说一般只会淘汰较少访问的图片,这就可以很好的限制Bolt的内存使用。
Bolt可以用在内存和CPU都过剩的服务器,另外使用Bolt可以减少磁盘的使用,加快图片的加载速度。
$ git clone https://github.com/liexusong/bolt
$ cd bolt
$ make
访问URL:http://your-host/filename_(width)x(height)_(quality).jpg
如果各位发现bug,请向本人提出,本人深深感谢。如果希望提供什么样的新功能也可以提出。
Sign in for post a comment
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.
Comments ( 3 )