perf: Limit the number of extra fields
This commit is contained in:
parent
9d9c1ce1f1
commit
185b1a1fd1
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ impl<'a> arbitrary::Arbitrary<'a> for FileOptions<'a, ExtendedFileOptions> {
|
||||||
options.zopfli_buffer_size =
|
options.zopfli_buffer_size =
|
||||||
Some(if bool::arbitrary(u)? { 2 } else { 3 } << u.int_in_range(8..=20)?);
|
Some(if bool::arbitrary(u)? { 2 } else { 3 } << u.int_in_range(8..=20)?);
|
||||||
}
|
}
|
||||||
u.arbitrary_loop(Some(0), Some((u16::MAX / 4) as u32), |u| {
|
u.arbitrary_loop(Some(0), Some(10), |u| {
|
||||||
options
|
options
|
||||||
.add_extra_data(
|
.add_extra_data(
|
||||||
u16::arbitrary(u)?,
|
u16::arbitrary(u)?,
|
||||||
|
|
Loading…
Add table
Reference in a new issue