antirez
b3624f5a16
activeExpireCycle(): better precision in max time used.
...
activeExpireCycle() can consume no more than a few milliseconds per
iteration. This commit improves the precision of the check for the time
elapsed in two ways:
1) We check every 16 iterations instead of the main loop instead of 256.
2) We reset iterations at the start of the function and not every time
we switch to the next database, so the check is correctly performed
every 16 iterations.
2012-05-14 16:04:41 +02:00
..
2012-04-13 17:52:33 -07:00
2012-03-13 18:05:11 +01:00
2012-03-13 18:05:11 +01:00
2011-12-15 11:50:15 +01:00
2011-12-15 11:42:40 +01:00
2010-07-01 14:38:51 +02:00
2012-04-06 11:47:17 +02:00
2011-12-15 11:42:40 +01:00
2012-04-11 17:04:31 +02:00
2011-10-10 11:21:15 -07:00
2012-04-07 12:11:23 +02:00
2011-04-13 10:58:21 +02:00
2012-03-27 13:48:57 +02:00
2011-09-15 18:25:53 +02:00
2012-04-24 11:28:10 +02:00
2012-04-18 11:31:24 +02:00
2012-04-11 11:03:30 +02:00
2011-10-02 14:05:29 +02:00
2012-04-09 12:20:47 +02:00
2012-05-01 10:52:03 +02:00
2012-05-13 21:52:35 +02:00
2012-04-21 21:49:21 +02:00
2012-01-21 23:30:13 +01:00
2012-02-14 16:11:46 +01:00
2012-02-15 12:21:04 +01:00
2011-09-29 10:20:03 +02:00
2012-04-27 15:57:27 +02:00
2012-02-14 16:11:46 +01:00
2011-02-28 14:48:49 +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
2010-07-01 14:38:51 +02:00
2012-05-09 20:45:19 +02:00
2012-04-11 12:12:30 +02:00
2012-04-27 16:29:44 +02:00
2010-07-01 14:38:51 +02:00
2012-03-20 17:32:48 +01:00
2012-04-07 11:14:52 +02:00
2012-04-02 11:56:03 +02:00
2010-07-01 14:38:51 +02:00
2010-07-01 14:38:51 +02:00
2012-02-04 08:58:37 +01:00
2011-09-23 14:51:48 +02:00
2011-09-23 15:06:07 +02:00
2012-04-24 12:53:30 +02:00
2012-04-24 12:02:19 +02:00
2012-02-26 10:01:27 +01:00
2012-02-14 19:57:51 +01:00
2012-04-24 19:05:27 +02:00
2012-05-11 16:08:57 +02:00
2012-03-31 11:28:37 +02:00
2012-05-14 16:04:41 +02:00
2012-05-13 21:52:35 +02:00
2010-07-01 14:38:51 +02:00
2012-05-02 21:47:53 +02:00
2012-04-09 12:36:44 +02:00
2012-04-11 11:58:32 +02:00
2012-04-27 11:41:25 +02:00
2012-03-30 21:19:51 +02:00
2012-03-30 21:19:51 +02:00
2011-03-09 15:44:21 +01:00
2010-07-01 14:38:51 +02:00
2012-04-21 20:34:45 +02:00
2012-04-21 20:34:45 +02:00
2010-09-06 10:12:44 +02:00
2012-04-18 11:37:14 +02:00
2012-05-02 22:41:50 +02:00
2012-03-23 10:22:58 +01:00
2012-04-18 17:38:02 +02:00
2012-04-07 14:40:29 +02:00
2012-02-21 18:26:11 +01:00
2012-04-24 11:11:55 +02:00
2011-11-02 16:52:10 +01:00
2012-03-09 22:07:45 +01:00
2012-01-02 15:24:50 -08:00
2011-07-06 15:22:00 +02:00
2012-04-10 16:34:33 +02:00
2012-05-06 10:06:21 +02:00
2012-01-03 16:13:42 -08:00
2012-04-07 14:40:29 +02:00
2011-02-28 09:56:48 +01:00
2012-03-27 16:54:53 +02:00
2012-04-05 10:41:28 +02:00