Caching json strings in expensive objects
未关闭
enhancement
- 主要语言
- Java
- 星标
- 24.2k
- 派生
- 4.5k
- 平均合并
- 6 天 4 小时
- 30 天内合并 PR
- 12
描述
We are trying to optimize gson resource usage in our servers.
Most of our requests CPU's are taking 200ms just doing gson serialization.
We've done a great progress by using the following method:
http://stackoverflow.com/a/30811549/410293
Although, we can't figure out how to make this work when the object is nested into a JsonWritterTree. I was hoping you had some insight on how to possibly nest a string into the JsonWritterTree.write without AssertError.
贡献指南
调研方向
首先复现所报告的 Gson 序列化案例:缓存的 JSON 字符串嵌套在 JsonWritterTree 中,并确定 JsonWritterTree.write 在哪里引发 AssertionError。将其与链接的 Stack Overflow 方法进行比较;当嵌套的缓存字符串能够在不触发断言的情况下得到支持,同时保留预期的序列化行为时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100