Skip to content

Conversation

@Hixie
Copy link
Contributor

@Hixie Hixie commented Jun 16, 2017

This should improve debug-time performance.

This should improve debug-time performance.
@Hixie
Copy link
Contributor Author

Hixie commented Jun 16, 2017

cc @abarth

BoxConstraints get constraints => super.constraints;

// We check the intrinsic sizes of each render box once by default.
bool _debugNeedsIntrinsicSizeCheck = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want this in test mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In tests I figured we'd just be super aggressive and always test everything. It found a bug! (Sort of. The bug only existed because of the checks.) The 1400 tests still run in under 2 minutes, so the cost seems low.

@abarth
Copy link
Contributor

abarth commented Jun 16, 2017

LGTM

@Hixie Hixie merged commit 5344ffc into flutter:master Jun 16, 2017
@Hixie Hixie deleted the less-asserts branch June 16, 2017 22:03
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
This should improve debug-time performance.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants