Skip to content

Fix the ListIter implementation for Vector#1967

Merged
xarvic merged 4 commits intolinebender:masterfrom
xarvic:fix_list
Sep 13, 2021
Merged

Fix the ListIter implementation for Vector#1967
xarvic merged 4 commits intolinebender:masterfrom
xarvic:fix_list

Conversation

@xarvic
Copy link
Collaborator

@xarvic xarvic commented Sep 12, 2021

This PR fixes the ListIter implementation for Vector and makes the implementation for Arc<Vec<...>> more efficient.

The old implementation used iter_mut() on Vector which makes a deep copy of the Vector, therefore Data::same returned always false

Christoph and others added 3 commits September 12, 2021 20:56
Signed-off-by: Christoph <xarvix@web.de>
Signed-off-by: Christoph <xarvix@web.de>
@xarvic xarvic linked an issue Sep 12, 2021 that may be closed by this pull request
Copy link
Collaborator

@maan2003 maan2003 left a comment

Choose a reason for hiding this comment

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

Thanks! Makes sense

@xarvic xarvic merged commit c93a7c4 into linebender:master Sep 13, 2021
@xarvic xarvic deleted the fix_list branch September 13, 2021 12:23
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.

Infinite loop when using a Vector in a Subwindow

2 participants