与内存相比,JSON形式的对象大小有多近
假设有类动物的对象动物
。我想在内存中计算对象动物
的大小。我可以做的一种方法是使用GSON将对象转换为JSON形式并计算字符串的大小。该字符串与真实对象的大小有多近?
Suppose there is object animal
of class Animal. I want to calculate size of object animal
inside the memory. One way I can do is to use gson to convert object into JSON form and calculate the size of string. How close would be size of this string to real object ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论