Skip to content

fix race on cancelling context passed to QueryContext #905

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

Closed
wants to merge 2 commits into from

Conversation

methane
Copy link
Member

@methane methane commented Dec 4, 2018

Description

This pull request is based on #904.

#904 add one allocation for each rows, unless buffer size is increased by some reason.
This pull request increases the initial buffer size from 4KiB to 16KiB.
This will reduce number of allocations.

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

@methane
Copy link
Member Author

methane commented Dec 4, 2018

@julienschmidt @shogo82148 Wold you take a look?

@julienschmidt
Copy link
Member

See #904

@DoctorQ
Copy link

DoctorQ commented Dec 7, 2018

if choose other way,when can fix it!waiting for !

@DoctorQ
Copy link

DoctorQ commented Jan 3, 2019

@methane methane changed the title Increase buffer size fix race on cancelling context passed to QueryContext Feb 12, 2019
@methane methane reopened this Apr 3, 2019
@methane methane mentioned this pull request Apr 3, 2019
5 tasks
@methane methane closed this Apr 4, 2019
@methane methane deleted the overallocate branch April 4, 2019 10:20
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.

3 participants