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
存放对象 or 指针(深拷贝后在副本上修改)?
修改的次数比较多,对象结构复杂(对象有三四层)
The text was updated successfully, but these errors were encountered:
深拷贝是最朴素的做法,相对来说消耗比较大,对于比较大的对象来说,和bigcache、freecache用法就接近了,体现不出ecache的优势。
更好的方案是,如果再上层涉及到协议层传输转换的话,比如使用pb、json、form-data等,也可以考虑到这一层加缓存,并且对有差异的部分打补丁(补丁部分也可以单独缓存),也就是在快发出去之前做数据组装和修订即可。
Sorry, something went wrong.
明白,谢谢
No branches or pull requests
存放对象 or 指针(深拷贝后在副本上修改)?
修改的次数比较多,对象结构复杂(对象有三四层)
The text was updated successfully, but these errors were encountered: