Files
flipper/src/utils
Pritesh Nandgaonkar 004efcb7a8 Fasten up serialization
Summary:
The serialization algo was slow. The problem was that it used to just go to the first child which was not serializable and went back to the parent which then looked for first child from the remaining children and serialized it, and this happened at all levels. Instead, currently, the child fills the stack up with the children which needs to be serialized, so there is no back and forth for each child. This improved the speed a lot.

Test case: Serializing ~10000 rows of logs
Previous Iterative algo: 33215.3 ms
Iterative Algo with the above change: 2051.1 ms
Recursive Algo: ~1000 ms

New Algo Video:

{F164050963}

Prev Algo: Too Slow

{F164051027}

{F164051085}

Recursive Speed:

{F164051982}

Reviewed By: jknoxville

Differential Revision: D16037998

fbshipit-source-id: 70fae9a0073ff28d1a6528ec0dbddceb213b2c5f
2019-07-02 08:12:28 -07:00
..
2019-01-18 08:01:05 -08:00
2019-06-17 06:18:45 -07:00
2019-02-11 02:51:25 -08:00
2019-02-05 09:29:16 -08:00
2018-06-01 11:03:58 +01:00
2019-05-20 04:47:11 -07:00
2019-05-30 04:02:39 -07:00
2018-06-01 11:03:58 +01:00
2019-03-15 11:30:38 -07:00
2019-05-30 04:02:39 -07:00
2019-04-04 09:54:23 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2019-01-09 10:42:55 -08:00
2019-03-22 10:41:01 -07:00
2019-06-17 06:18:45 -07:00
2019-07-02 08:12:28 -07:00
2018-06-01 11:03:58 +01:00