antirez
dcc48a8143
replicationFeedSlave() reworked for correctness and speed.
...
The previous code using a static buffer as an optimization was lame:
1) Premature optimization, actually it was *slower* than naive code
because resulted into the creation / destruction of the object
encapsulating the output buffer.
2) The code was very hard to test, since it was needed to have specific
tests for command lines exceeding the size of the static buffer.
3) As a result of "2" the code was bugged as the current tests were not
able to stress specific corner cases.
It was replaced with easy to understand code that is safer and faster.
2013-08-12 12:50:29 +02:00
..
2012-04-13 17:52:33 -07:00
2013-01-19 10:59:44 +01:00
2012-11-08 18:31:32 +01:00
2013-06-28 16:39:49 +02:00
2013-06-28 16:39:49 +02:00
2013-06-28 16:39:49 +02:00
2013-06-28 16:39:49 +02:00
2013-06-28 16:39:49 +02:00
2013-06-28 16:39:49 +02:00
2013-07-10 14:37:13 +02:00
2013-07-08 16:08:36 +02:00
2013-07-22 10:31:38 +02:00
2012-11-08 18:31:32 +01:00
2013-01-19 10:59:44 +01:00
2012-11-22 10:12:11 +01:00
2013-07-22 10:31:38 +02:00
2013-07-24 11:21:39 +02:00
2013-07-22 10:31:38 +02:00
2013-02-27 11:50:35 +01:00
2013-01-19 10:59:44 +01:00
2012-04-09 12:20:47 +02:00
2012-11-29 14:20:08 +01:00
2013-06-27 12:18:29 +02:00
2013-07-22 10:31:38 +02:00
2013-01-19 10:59:44 +01:00
2012-10-22 02:55:23 -07:00
2012-02-14 16:11:46 +01:00
2012-12-11 17:01:00 +01:00
2013-05-17 17:19:02 +09:00
2013-05-14 11:23:16 +02:00
2012-11-08 18:31:32 +01:00
2012-11-08 18:31:32 +01:00
2010-07-01 14:38:51 +02:00
2010-07-01 14:38:51 +02:00
2010-07-01 14:38:51 +02:00
2013-01-19 10:59:44 +01:00
2013-03-21 13:32:08 +11:00
2013-02-26 11:52:12 +01:00
2013-01-21 12:34:22 +01:00
2013-02-24 18:17:46 +01:00
2013-03-26 10:58:10 +01:00
2013-08-12 10:29:14 +02:00
2013-01-28 13:15:16 +01:00
2013-07-28 11:00:09 +02:00
2013-07-02 17:47:32 +02:00
2012-11-08 18:31:32 +01:00
2013-06-21 12:07:53 +02:00
2012-11-08 18:31:32 +01:00
2012-11-08 18:31:32 +01:00
2013-07-22 10:31:38 +02:00
2013-01-19 10:59:44 +01:00
2013-08-08 16:42:08 +02:00
2012-11-08 18:31:32 +01:00
2013-01-19 10:59:44 +01:00
2013-07-11 17:47:55 +02:00
2013-03-26 18:16:03 +01:00
2013-08-06 15:00:43 +02:00
2013-08-12 10:29:14 +02:00
2013-01-19 10:59:44 +01:00
2013-08-12 12:50:29 +02:00
2013-07-16 15:41:24 +02:00
2013-07-16 15:43:36 +02:00
2013-06-25 15:36:48 +02:00
2013-07-24 11:21:39 +02:00
2013-08-12 11:38:21 +02:00
2013-07-24 11:21:39 +02:00
2013-02-27 11:50:35 +01:00
2013-01-19 10:59:44 +01:00
2010-07-01 14:38:51 +02:00
2013-07-22 10:31:38 +02:00
2012-11-08 18:31:32 +01:00
2012-11-08 18:31:32 +01:00
2013-07-22 10:31:38 +02:00
2012-05-02 22:41:50 +02:00
2013-07-22 10:31:38 +02:00
2013-07-22 10:31:38 +02:00
2013-07-22 10:31:38 +02:00
2013-07-22 10:31:38 +02:00
2013-07-22 10:31:38 +02:00
2012-11-08 18:31:32 +01:00
2013-07-24 18:59:54 +02:00
2013-07-02 12:08:07 +02:00
2011-07-06 15:22:00 +02:00
2013-05-27 11:44:04 +02:00
2013-07-02 03:18:18 -07:00
2012-11-08 18:31:32 +01:00
2012-04-07 14:40:29 +02:00
2011-02-28 09:56:48 +01:00
2013-01-19 10:59:44 +01:00
2012-11-19 11:47:35 +01:00