Skip to content

Conversation

@ThomsonTan
Copy link
Collaborator

The previous fix of shadowing non-enumerable property for for...in (#2175) added downward lookup in prototype chain which could degrade performance in edge cases. This fix followed suggestion from Curtis and only ignores lookup in prototype chain if there is no enumerable properties in the whole chain, otherwise search from the first prototype.

The perf data for which we optimized for in enumerator looks flat.

@ThomsonTan
Copy link
Collaborator Author

@curtisman @rajatd please help review.

@ThomsonTan
Copy link
Collaborator Author

@curtisman could you please help take a look?

@chakrabot chakrabot merged commit cb711ae into chakra-core:release/1.4 Jan 10, 2017
chakrabot pushed a commit that referenced this pull request Jan 10, 2017
…wed property in prototype chain in for...in

Merge pull request #2298 from ThomsonTan:FixShadowPropertyInForIn

The previous fix of shadowing non-enumerable property for for...in (#2175) added downward lookup in prototype chain which could degrade performance in edge cases. This fix followed suggestion from Curtis and only ignores lookup in prototype chain if there is no enumerable properties in the whole chain, otherwise search from the first prototype.

The perf data for which we optimized for in enumerator looks flat.
chakrabot pushed a commit that referenced this pull request Jan 10, 2017
…arching shadowed property in prototype chain in for...in

Merge pull request #2298 from ThomsonTan:FixShadowPropertyInForIn

The previous fix of shadowing non-enumerable property for for...in (#2175) added downward lookup in prototype chain which could degrade performance in edge cases. This fix followed suggestion from Curtis and only ignores lookup in prototype chain if there is no enumerable properties in the whole chain, otherwise search from the first prototype.

The perf data for which we optimized for in enumerator looks flat.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants