Skip to content

Conversation

@HansMuller
Copy link
Contributor

Handle a common case in Foo.lerp(a, b, t): if a and b are identical, then just return a. This avoids needlessly constructing a new Foo and recursively lerping all of its properties. If a and b refer to the same const object, then we also preserve their singleton identity.

This PR is similar to #120829

@flutter-dashboard flutter-dashboard bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels Feb 23, 2023
@HansMuller HansMuller force-pushed the lerp_identical_painting branch 2 times, most recently from 365e2c4 to 74404e8 Compare February 23, 2023 16:24
@HansMuller HansMuller force-pushed the lerp_identical_painting branch from 74404e8 to 5d0c998 Compare February 23, 2023 17:35
@HansMuller HansMuller closed this Feb 23, 2023
@HansMuller HansMuller deleted the lerp_identical_painting branch February 23, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant