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

rework the block context to take a mutable ref to the batch #3027

Open
garyyu opened this issue Sep 7, 2019 · 2 comments
Open

rework the block context to take a mutable ref to the batch #3027

garyyu opened this issue Sep 7, 2019 · 2 comments

Comments

@garyyu
Copy link
Contributor

garyyu commented Sep 7, 2019

To track an improvement item here, the original discussion: #3004 (comment)

garyyu 2 days ago Member
But I would still prefer ONE batch here, because one commit() is twice efficient than two commit() :-)

@antiochp
antiochp 2 days ago •
Author Member
We create two separate block contexts and these both take ownership of the batch, so we can't reuse the same one.

We need to rework the block context to take a mutable ref to the batch. Pretty sure this is possible but the code gets tricky because of the lifetimes involved.
Maybe tackle this in a separate PR.

@garyyu
Copy link
Contributor Author

garyyu commented Sep 7, 2019

@garyyu I assigned this to you if you don't mind :-)

@antiochp
Copy link
Member

antiochp commented Sep 9, 2019

Lets leave this open for a bit to remind us (but reserving the right to close it out unfixed...)
I'm not a huge fan of tracking too much "work in progress" - particularly if it just sits and is not actively worked on. If this is important we will pick it up at a later date regardless of whether its tracked by an issue like this.

@garyyu garyyu removed the task label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants