Feed.java中的一个问题
cundong opened this issue · comments
https://github.com/stormzhang/9GAG/blob/master/app/src/main/java/me/storm/ninegag/model/Feed.java
中
private static final HashMap<String, Feed> CACHE = new HashMap<String, Feed>();
这个逻辑中,
只有put和get,没有remove操作,而且是强引用,如果项目中存在过多的这种Model,会导致内存溢出吧,是否改为WeakReferance会比较好呢?