forked from datastax/python-driver
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit cad1e91
(minor improvement): small refactoring in SimpleStrategy's make_token_replica_map()
While trying to look at some random (flaky?) test (#510 (comment) )
I saw some (minor) improvements that can be made to SimpleStrategy's make_token_replica_map():
Specifically - remove some redundant len() calls to outside the loop(s)
Probably very very minor improvement, perhaps in a large cluster it'll be noticable - but no one should use SimpleStrategy anyway!
Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>1 parent 1262d43 commit cad1e91
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
569 | 569 |
| |
570 | 570 |
| |
571 | 571 |
| |
572 | - | ||
572 | + | ||
573 | + | ||
573 | 574 |
| |
574 | - | ||
575 | - | ||
575 | + | ||
576 | + | ||
576 | 577 |
| |
577 | 578 |
| |
578 | 579 |
| |
|
0 commit comments