Google发布了Android性能优化典范第2季的课程,一共20个短视频,包括的内容大致有:电量优化,网络优化,Wear上如何做优化,使用对象池来提高效率,LRU Cache,Bitmap的缩放,缓存,重用,PNG压缩,自定义View的性能,提升设置alpha之后View的渲染性能,以及Lint, ...
分类:
移动开发 时间:
2016-04-04 19:36:01
阅读次数:
279
前言:
fresco是facebook主导的一个开源图片缓存库,从它提供的示例程序comparison来看,
fresco貌似比其他的几个目前android主流的图片缓存库(glide,picasso,uil等)更快更节省内存。接下来就看看它到底是如何做到的。
一、背景:
1:lru与SoftReference那些年的爱恨情仇:很久很久以前,android的内存缓存还用...
分类:
其他好文 时间:
2016-03-31 14:47:30
阅读次数:
262
题目 Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get ...
分类:
编程语言 时间:
2016-03-27 09:40:35
阅读次数:
229
主要是priority_queue的用法 一个是内置类型优先队列怎么设置小根堆(默认大根堆) 如果是自定义数据结构,有两种办法 1、定义这种数据结构的比较符号,就可以当成内置类型整 2、传进去一个重载()的类,当小于号用,默认还是大根堆,也许传进去的是个callable object都行的吧,我试了
分类:
系统相关 时间:
2016-02-21 22:46:16
阅读次数:
419
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the
分类:
系统相关 时间:
2016-01-28 13:46:53
阅读次数:
217
EHCache是来自sourceforge(http://ehcache.sourceforge.net/) 的开源项目,也是纯Java实现的简单、快速的Cache组件。EHCache支持内存和磁盘的缓存,支持LRU、LFU和FIFO多种淘汰算法,支持分 布式的Cache,可以作为Hiberna.....
分类:
系统相关 时间:
2016-01-24 22:26:20
阅读次数:
344
Question:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get...
分类:
系统相关 时间:
2016-01-24 07:02:19
阅读次数:
236
memcached的cache机制是怎样的? Memcached主要的cache机制是LRU(最近最少用)算法+超时失效。当您存数据到memcached中,可以指定该数据在缓存中可以呆多久Which is forever, or some time in the future。如果memcache....
分类:
系统相关 时间:
2016-01-21 23:19:12
阅读次数:
282
redis 官方提供的 confhttps://raw.github.com/antirez/redis/2.2/redis.conf中6中过期策略的具体方式。redis 中的默认的过期策略是volatile-lru 。设置方式 config set maxmemory-policy volatil...
分类:
其他好文 时间:
2016-01-20 17:24:50
阅读次数:
126
memcached源码分析-----item过期失效处理以及LRU爬虫,memcached-----item 转载请注明出处:http://blog.csdn.net/luotuo44/article/details/42963793 温馨提示:本文用到了一些可以在启动memcached设置...
分类:
系统相关 时间:
2016-01-19 23:36:01
阅读次数:
266