We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@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会比较好呢?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@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会比较好呢?
The text was updated successfully, but these errors were encountered: