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

BackendFactory: Use Arc instead of references #1480

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

georgwiese
Copy link
Collaborator

@georgwiese georgwiese commented Jun 28, 2024

Pulled out of #1470.

Receiving references, the CompositeBackend has no chance of changing the PIL or fixed columns before passing it to the wrapped backend. Using Arc fixed it, and is quite compatible with what is kept by Pipeline already.

@georgwiese georgwiese changed the title BackendFactory: Use Arc instead of references BackendFactory: Use Arc instead of references Jun 28, 2024
@georgwiese georgwiese marked this pull request as ready for review June 28, 2024 07:45
pil.borrow(),
&fixed_cols[..],
pil.clone(),
fixed_cols.clone(),
Copy link
Member

Choose a reason for hiding this comment

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

All this cloning will probably be quite slow in practice probably, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, because it's cloning Arcs!

Copy link
Member

Choose a reason for hiding this comment

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

ah true

@georgwiese georgwiese added this pull request to the merge queue Jun 28, 2024
Merged via the queue into main with commit 9da2611 Jun 28, 2024
6 checks passed
@georgwiese georgwiese deleted the backend-use-arc branch June 28, 2024 08:40
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.

None yet

2 participants