Daniel Nephin
11398892b3
submatview: avoid sorting results unnecessarily
...
Previous getFromView would call view.Result when the result may not have been returned
(because the index is updated past the minIndex. This would allocate a slice and sort it
for no reason, because the values would never be returned.
Fix this by re-ordering the operations in getFromView.
The test changes in this commit were an attempt to cover the case where
an update is received but the index does not exceed the minIndex.
2021-04-27 19:03:17 -04:00
..
2020-12-07 13:42:55 -05:00
2021-01-27 17:34:43 -05:00
2021-04-08 11:11:15 +01:00
2021-04-27 19:03:16 -04:00
2021-04-09 15:12:10 -04:00
2021-04-12 09:35:14 -06:00
2021-03-15 18:06:04 -06:00
2021-04-27 19:03:16 -04:00
2020-11-06 20:48:38 -05:00
2021-04-07 14:09:22 +01:00
2021-02-19 18:35:08 -05:00
2020-11-17 10:53:57 -05:00
2021-03-22 10:16:41 +01:00
2021-04-27 19:03:16 -04:00
2021-02-06 20:23:40 -05:00
2021-03-22 10:16:41 +01:00
2021-03-09 15:17:26 -05:00
2021-04-27 19:03:17 -04:00
2021-04-20 17:12:50 -04:00
2021-04-27 19:03:17 -04:00
2021-04-22 11:28:27 +00:00
2021-04-15 13:54:40 -06:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2021-02-17 08:16:57 -08:00
2021-04-14 12:39:35 -04:00
2021-04-14 12:39:35 -04:00
2021-04-14 12:39:35 -04:00
2021-04-13 16:08:41 -06:00
2021-04-14 12:39:35 -04:00
2021-04-27 19:03:16 -04:00
2021-04-27 19:03:16 -04:00
2020-11-18 13:03:29 -05:00
2020-12-07 13:42:55 -05:00
2020-12-11 14:03:47 -05:00
2020-12-07 13:42:55 -05:00
2020-10-06 13:24:05 -05:00
2021-04-14 12:39:35 -04:00
2020-12-07 13:42:55 -05:00
2020-10-09 10:43:33 -04:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2020-12-07 13:42:55 -05:00
2020-12-11 14:03:47 -05:00
2021-04-12 09:26:55 -06:00
2021-02-10 10:36:11 +01:00
2020-12-07 13:42:55 -05:00
2021-04-14 12:39:35 -04:00
2020-09-18 17:38:23 -04:00
2021-04-05 13:23:00 -05:00
2021-04-27 19:03:16 -04:00
2021-03-16 18:16:44 -04:00
2020-12-07 13:42:55 -05:00
2021-03-24 14:48:18 -04:00
2020-11-09 09:22:11 -05:00
2020-12-07 13:42:55 -05:00
2021-04-14 12:39:35 -04:00
2020-12-07 13:42:55 -05:00
2021-01-04 11:27:00 -06:00
2020-10-08 14:51:53 -05:00
2020-12-07 13:42:55 -05:00
2021-04-14 16:20:22 -04:00
2021-04-14 16:20:22 -04:00
2020-11-06 20:48:38 -05:00
2020-11-11 13:19:02 -05:00
2020-12-07 13:42:55 -05:00
2020-11-09 09:22:11 -05:00
2020-12-07 13:42:55 -05:00
2020-12-11 14:03:47 -05:00
2020-10-01 11:32:25 +01:00
2020-12-07 13:42:55 -05:00
2020-12-07 13:42:55 -05:00
2021-01-25 17:25:03 -05:00
2021-04-12 09:35:14 -06:00
2021-04-12 09:35:14 -06:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2021-04-27 19:03:17 -04:00
2021-01-25 17:25:03 -05:00
2021-01-25 17:25:03 -05:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2021-01-06 22:20:23 +01:00
2021-03-22 10:16:41 +01:00
2020-12-07 13:42:55 -05:00
2021-03-16 18:16:44 -04:00
2020-12-07 13:42:55 -05:00
2021-04-14 10:20:15 -06:00
2021-04-15 14:11:23 -06:00
2020-12-07 13:42:55 -05:00
2020-10-08 15:38:01 -04:00
2020-12-07 13:42:55 -05:00