Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Plot#getConnectedPlots and share cache between connected plots #4212

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

SirYwell
Copy link
Member

Overview

Fixes #4203

Description

Previously, each plot in a set of merged plots had its own connected plots cache. We can reduce this overhead by sharing the set. This reduces memory overhead if many plots are merged into one.

I also cleaned up the repetitive code.

Submitter Checklist

Preview Give feedback

@SirYwell SirYwell requested a review from a team as a code owner October 19, 2023 11:10
@github-actions github-actions bot added the chore label Oct 19, 2023
@SirYwell SirYwell requested a review from dordsor21 October 22, 2023 07:47
@NotMyFault NotMyFault merged commit 15b4cbd into main Oct 23, 2023
@NotMyFault NotMyFault deleted the refactor/connected-plots-cleanup branch October 23, 2023 14:38
SirYwell added a commit that referenced this pull request Nov 16, 2023
…ts (#4212)

* Simplify Plot#getConnectedPlots and share cache between connected plots

* add missing isMerged check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential Memory Leak
3 participants