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

Only store cheap/rc cloneable fields inside of Graph #136

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

knutwalker
Copy link
Collaborator

@knutwalker knutwalker commented Nov 11, 2023

  • deadpool::Pool are "cheap to clone because of reference counting" according to their doc.
  • We only store the config values we actually need after having created the pool and use Arc<str> for the string to also get a cheap clone
  • Now we can make Graph: Clone

- deadpool::Pool are "cheap to clone because of reference counting" according to their doc.
- We only store the config values we actually need after having created the pool and use `Arc<str>` for the string to also get a cheap clone
- Now we can make `Graph: Clone`
@knutwalker knutwalker requested a review from s1ck November 12, 2023 12:27
@knutwalker knutwalker merged commit 68edce0 into neo4j-labs:master Nov 12, 2023
25 checks passed
@knutwalker knutwalker deleted the graph-clone branch November 12, 2023 12:37
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

1 participant