calculate object delta

前端 未结 3 1041
深忆病人
深忆病人 2020-12-19 23:41

I am working on an application where client and server share an object model, and the object graphs can become rather big.

To save an object from client to server, i

3条回答
  •  情话喂你
    2020-12-19 23:53

    You may be able to save some bandwidth by giving your objects the ability to calculate a hash of themselves based on their property values. Compare the server object hash to the client object hash, if they are different, update the appropriate one.

提交回复
热议问题