Reduce measure cache size to 8
Summary: @public Reduces measure cache size to a number that is enough for 95% of nodes, according to our (FB-internal) measurements. Node size: 776b -> 584b Reviewed By: SidharthGuglani Differential Revision: D15183567 fbshipit-source-id: 9ae8cc78074271a015e7618b931ba0356de87a0c
This commit is contained in:
committed by
Facebook Github Bot
parent
af38fd31f8
commit
018916403e
@@ -91,9 +91,9 @@ struct YGCachedMeasurement {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// This value was chosen based on empiracle data. Even the most complicated
|
// This value was chosen based on empirical data:
|
||||||
// layouts should not require more than 16 entries to fit within the cache.
|
// 98% of analyzed layouts require less than 8 entries.
|
||||||
#define YG_MAX_CACHED_RESULT_COUNT 16
|
#define YG_MAX_CACHED_RESULT_COUNT 8
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook {
|
||||||
namespace yoga {
|
namespace yoga {
|
||||||
|
Reference in New Issue
Block a user