Conversation
The order of combinations has changed slightly. Now the result is sorted according to the sorting of the input data.
|
Hello @Ratio2, can you elaborate a bit more on what this PR is doing to improve performance? |
Input data: The function call duration is 118 seconds, since we have complexity The main idea of the change is to not iterate over impossible combinations in the loop. If
|
| for passLength := range Range(1, 7).Chan() { | ||
| fmt.Println("Password Length:", passLength) | ||
|
|
||
| // Merge a slide into a string. |
There was a problem hiding this comment.
| // Merge a slide into a string. | |
| // Merge a slice into a string. |
The order of combinations has changed slightly. Now the result is sorted according to the sorting of the input data.
Before these changes, matchmaking with override is very slow with more than 30 players:
players - time in seconds
10 - 1.1
20 - 1.9
22 - 2
24 - 2
26 - 3
28 - 8
30 - 28
32 - 118