Skip to content

Improved performance of GridOut readline by creating readchunk method.#214

Closed
omus wants to merge 1 commit into
mongodb:masterfrom
omus:master
Closed

Improved performance of GridOut readline by creating readchunk method.#214
omus wants to merge 1 commit into
mongodb:masterfrom
omus:master

Conversation

@omus

@omus omus commented Nov 4, 2013

Copy link
Copy Markdown
Contributor

Previously readline would read one byte at a time using the read
method. By reading one byte at a time we would be slicing the buffer
over and over again causing readline to use more CPU than necessary.

Previously readline would read one byte at a time using the read
method. By reading one byte at a time we would be slicing the buffer
over and over again causing readline to use more CPU than necessary.
@ajdavis

ajdavis commented Nov 26, 2013

Copy link
Copy Markdown
Member

Thanks, we'll consider this.

@ghost ghost assigned ajdavis Dec 13, 2013
@ajdavis

ajdavis commented Dec 20, 2013

Copy link
Copy Markdown
Member

Merged in 3649a3a, thanks for the patch. I found this improved the time for a random benchmark from 80 seconds to 2.5, and with some further optimizations the time dropped under a second.

@ajdavis ajdavis closed this Dec 20, 2013
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.

2 participants