Closed adrian-gierakowski closed 6 years ago
the commits from ba8d73771958425cbcb21adee43d81e778bfb727 onward are about reducing number of reallocations see travis log for how many reallocations are needed with the current buffer growth strategy: https://travis-ci.org/h0x91b/redis-fast-driver/jobs/360343899
5bb94241222a8104fd0b20b74faee384267aa142 this is reduced to 1
1.2 strategy must be aligned by 64 bytes for a performance. And several small things, please see review.
Thanks for the quick review!
I'll try to take care of this tonight, although I'm leaving for holidays tomorrow morning and have a bunch of other things to do still so might run out of time.
Btw. would you mind sharing a link to the StackOverflow article you quoted?
On Sat, 31 Mar 2018, 10:13 Arseniy Pavlenko, notifications@github.com wrote:
Assigned #20 https://github.com/h0x91b/redis-fast-driver/pull/20 to @adrian-gierakowski https://github.com/adrian-gierakowski.
— You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub https://github.com/h0x91b/redis-fast-driver/pull/20#event-1550669288, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUJwZQJU2eLkL8TcAu20pCffav5UUQdks5tj0iegaJpZM4TB4_a .
@h0x91b I've done what you asked for, although I am not sure if rounding up to multiple of 64 actually improves anythings.
anyway, I guess no harm rounding it :)
@h0x91b, I believe I have implemented everything you've requested. Do you have any further doubts or comments?
avoid unnecessary copying when reallocating command buffer
this is a proper implementation of what was intended in 92b47664b20201eb95dc1526b83a97ae13179831
and a few other fixes, see individual commits for details
I am going to follow up with a few other commits shortly