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:
Родитель
d4d463bc2b
Коммит
71c3c23862
|
@ -91,9 +91,9 @@ struct YGCachedMeasurement {
|
|||
}
|
||||
};
|
||||
|
||||
// This value was chosen based on empiracle data. Even the most complicated
|
||||
// layouts should not require more than 16 entries to fit within the cache.
|
||||
#define YG_MAX_CACHED_RESULT_COUNT 16
|
||||
// This value was chosen based on empirical data:
|
||||
// 98% of analyzed layouts require less than 8 entries.
|
||||
#define YG_MAX_CACHED_RESULT_COUNT 8
|
||||
|
||||
namespace facebook {
|
||||
namespace yoga {
|
||||
|
|
Загрузка…
Ссылка в новой задаче