Files
flipper/flow-typed/npm
John Knox ef1eb41dba Use mutex library instead of repeatedly chaining promises
Summary:
I noticed that after a long-running flipper session, 11% of the memory was composed of millions of tiny PromiseReaction records (https://github.com/domenic/promises-unwrapping#promisereaction-records).

It seems this method of chaining promises meant that it was forming a linked list of these from the most recent, back to the very first invocation.

Instead of using a home-rolled lock, I'm replacing it with an actual library. Haven't verified the fix, but this seems like a better approach regardless.

Reviewed By: passy

Differential Revision: D15853570

fbshipit-source-id: 1626d9f25cba809794b13ee920bdec2cd1d4b874
2019-06-17 09:11:50 -07:00
..
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-12-04 03:37:47 -08:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2019-06-10 10:36:25 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2019-06-03 07:07:24 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-12-04 03:37:47 -08:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2019-02-28 07:28:25 -08:00
2019-01-15 13:58:53 -08:00
2019-06-07 08:14:20 -07:00
2019-01-25 12:19:07 -08:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2019-03-01 04:30:22 -08:00
2018-06-01 11:03:58 +01:00
2018-12-14 10:35:12 -08:00
2018-06-01 11:03:58 +01:00
2018-08-23 09:42:18 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2019-06-03 07:07:24 -07:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00
2018-06-01 11:03:58 +01:00