You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2021/12/01 05:26:11 UTC

[GitHub] [incubator-teaclave] mssun opened a new pull request #577: Optimize memory footprint of serde in RPC

mssun opened a new pull request #577:
URL: https://github.com/apache/incubator-teaclave/pull/577


   ## Description
   
   This PR optimize memory footprint of RPC (i.e., memory used by serde).
   
   Serde uses up more than 10x memory to deserialize a json message when using `#[serde(flatten)]` and `#[serde(tag = "request"]`.
   
   In our case, we cannot handle more than 2M message because serde will allocation more than 100M bytes memory. The root cause is still unknown.
   
   ## Type of change (select or add applied and delete the others)
   - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
   
   ## How has this been tested?
   CI tests.
   
   ## Checklist
   
   - [x] Fork the repo and create your branch from `master`.
   - [x] If you've added code that should be tested, add tests.
   - [x] If you've changed APIs, update the documentation.
   - [x] Ensure the tests pass (see CI results).
   - [x] Make sure your code lints/format.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun merged pull request #577: Optimize memory footprint of serde in RPC

Posted by GitBox <gi...@apache.org>.
mssun merged pull request #577:
URL: https://github.com/apache/incubator-teaclave/pull/577


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org