Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed.java中的一个问题 #13

Open
cundong opened this issue Jul 21, 2015 · 0 comments
Open

Feed.java中的一个问题 #13

cundong opened this issue Jul 21, 2015 · 0 comments

Comments

@cundong
Copy link
Contributor

cundong commented Jul 21, 2015

@stormzhang

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会比较好呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant