for experimentation: configurable measure cache size

Summary:
@public

Allows to limit the number of measure cache entries used. This is purely for experimentation.

The measure cache uses about half of every `YGNode`. Reducing its size would allow us to reduce resident memory used by Yoga.

Reviewed By: SidharthGuglani

Differential Revision: D14279027

fbshipit-source-id: e0d22138230bee7fb129c193eb6e4085de02a36e
This commit is contained in:
David Aurelio
2019-03-02 12:39:37 -08:00
committed by Facebook Github Bot
parent 6368416178
commit de79f2a1d4
2 changed files with 12 additions and 1 deletions

View File

@@ -411,6 +411,8 @@ WIN_EXPORT float YGRoundValueToPixelGrid(
const bool forceCeil,
const bool forceFloor);
void YGSetUsedCachedEntries(size_t);
YG_EXTERN_C_END
#ifdef __cplusplus