Commit 0c70189
DMD-921 - Optimize most-connected-nodes to use slice limit
Slice the nodes array to 20 elements before iterating, rather than
checking the index in each iteration. Also preallocate the output
slice capacity.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 5ae06f2 commit 0c70189
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1081 | 1083 | | |
1082 | 1084 | | |
1083 | 1085 | | |
| |||
0 commit comments