Skip to main content

MAX_PLIST_VALUES

Constant MAX_PLIST_VALUES 

Source
pub const MAX_PLIST_VALUES: usize = 10_000;
Expand description

A binary plist object may be referenced any number of times, and each reference is expanded into its own value, so the tree can be far larger than the file. Every value costs a plist::Value slot of about 80 bytes, and a dictionary also carries an IndexMap table, so a tree of one-entry dictionaries costs about 160 bytes per value. A census of 5803 real Brush.archive and brushset.plist files found at most 949 values. It also caps the objects and collection references a binary plist declares.