Elijah Newren
ae15fd4116
merge: small code readability improvement
...
After our loop through the selected strategies, we compare best_strategy
to wt_strategy. This is fine, but the fact that the code setting
best_strategy sets it to use_strategies[i]->name requires a little bit
of extra checking to determine that at the time of setting, that's the
same as wt_strategy. Just setting best_strategy to wt_strategy makes it
a little easier to verify what the loop is doing, at least for this
reader.
Further, use_strategies[i]->name is used in a number of places, where we
could just use wt_strategy. The latter takes less time for this reader
to parse (one variable name instead of three), so just use wt_strategy
to make the code slightly faster for human readers to parse.
Signed-off-by: Elijah Newren <newren@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2022-08-24 09:25:59 -07:00
..
2022-06-07 14:10:56 -07:00
2022-04-13 23:56:08 -07:00
2022-04-06 09:42:14 -07:00
2022-06-07 14:10:56 -07:00
2022-06-07 14:10:56 -07:00
2022-06-21 08:52:37 -07:00
2022-03-04 13:24:18 -08:00
2022-08-05 15:52:14 -07:00
2022-07-01 11:43:42 -07:00
2021-10-15 13:09:40 -07:00
2022-01-13 13:49:45 -08:00
2022-08-18 13:07:04 -07:00
2022-02-17 16:25:05 -08:00
2022-07-19 16:40:17 -07:00
2022-03-04 13:24:18 -08:00
2022-06-07 14:10:56 -07:00
2022-03-16 17:53:07 -07:00
2022-02-04 13:58:28 -08:00
2021-10-28 09:57:09 -07:00
2022-04-13 23:56:08 -07:00
2022-07-12 07:17:28 -07:00
2022-04-13 23:56:10 -07:00
2022-04-26 09:26:35 -07:00
2022-06-07 14:10:56 -07:00
2022-06-02 14:31:16 -07:00
2022-06-07 14:10:56 -07:00
2022-06-17 10:38:26 -07:00
2022-04-04 10:56:23 -07:00
2022-07-18 13:31:57 -07:00
2021-12-20 14:55:02 -08:00
2021-10-20 14:33:07 -07:00
2022-07-11 16:26:33 -07:00
2022-05-26 15:59:27 -07:00
2022-07-01 11:43:43 -07:00
2022-06-22 13:23:29 -07:00
2022-03-16 17:53:08 -07:00
2022-08-04 14:12:23 -07:00
2022-01-07 15:19:34 -08:00
2022-06-17 10:38:26 -07:00
2022-01-05 13:29:23 -08:00
2022-08-03 10:54:20 -07:00
2022-07-23 10:53:55 -07:00
2022-05-20 15:26:59 -07:00
2022-04-06 15:21:59 -07:00
2022-05-20 15:26:59 -07:00
2022-03-04 13:24:17 -08:00
2022-07-01 11:43:43 -07:00
2022-03-07 11:57:52 -08:00
2022-06-22 16:10:06 -07:00
2022-08-24 09:25:59 -07:00
2022-03-16 17:53:08 -07:00
2022-06-21 10:12:15 -07:00
2022-07-10 14:53:48 -07:00
2022-07-18 13:31:53 -07:00
2022-06-20 16:20:45 -07:00
2022-03-16 17:53:08 -07:00
2022-06-17 10:38:26 -07:00
2022-05-02 09:50:37 -07:00
2022-02-02 11:24:23 -08:00
2022-02-04 13:58:28 -08:00
2022-04-13 23:56:08 -07:00
2022-07-01 11:43:43 -07:00
2022-06-15 11:45:46 -07:00
2022-03-01 12:36:01 -08:00
2022-07-19 12:49:04 -07:00
2022-06-10 15:04:15 -07:00
2022-06-07 14:10:56 -07:00
2022-08-03 13:36:09 -07:00
2022-07-06 12:24:43 -07:00
2022-05-20 15:26:59 -07:00
2022-08-08 13:23:26 -07:00
2022-08-11 13:45:23 -07:00
2022-05-20 15:26:59 -07:00
2022-07-01 11:43:42 -07:00
2022-08-08 13:23:26 -07:00
2022-02-04 13:58:28 -08:00
2022-07-14 11:24:11 -07:00
2022-06-08 14:27:51 -07:00
2022-06-06 09:56:42 -07:00
2022-06-03 14:30:35 -07:00
2022-06-10 15:04:13 -07:00
2022-02-04 13:58:28 -08:00
2022-08-03 11:12:36 -07:00
2022-08-01 12:17:13 -07:00
2022-05-20 15:26:59 -07:00
2022-06-13 10:22:36 -07:00
2022-06-10 15:04:15 -07:00
2022-02-04 13:58:28 -08:00
2021-11-25 22:15:07 -08:00
2021-11-03 13:25:36 -07:00
2022-06-02 14:31:16 -07:00