GSON Serialization very very slow

后端 未结 2 1633
小蘑菇
小蘑菇 2021-02-07 20:25

I\'m trying to serialize an array of 7000 POJO using GSON and the serialization time is extremely slow. It\'s on the order of 3-5 seconds to serialize an array of the following

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 21:13

    how about using flat buffers over json.

    https://medium.freecodecamp.com/why-consider-flatbuffer-over-json-2e4aa8d4ed07#.d79exjq8n

提交回复
热议问题