Commit c6da35c
Eliminate redundant Vec clone in runner initialization
This removes one unnecessary clone of inited_plrs by reordering
operations - we now clone for input_groups, then reuse inited_plrs
for sorted_groups instead of cloning again.
Performance improvement:
- Multi-threaded 100k: ~1.64s vs ~1.66s before (~1-2% faster)
- Init time: ~0.94s vs ~1.0s before (~6% faster in init)
Agent-Logs-Url: https://github.com/shenjackyuanjie/tswn-core/sessions/88a7b2a0-9ba1-47d6-a23f-92831f78a966
Co-authored-by: shenjackyuanjie <54507071+shenjackyuanjie@users.noreply.github.com>1 parent 8ac4d5c commit c6da35c
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
364 | | - | |
365 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
366 | 365 | | |
367 | 366 | | |
368 | 367 | | |
| |||
375 | 374 | | |
376 | 375 | | |
377 | 376 | | |
378 | | - | |
| 377 | + | |
379 | 378 | | |
380 | 379 | | |
381 | 380 | | |
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
385 | 384 | | |
386 | | - | |
| 385 | + | |
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
| |||
394 | 393 | | |
395 | 394 | | |
396 | 395 | | |
397 | | - | |
| 396 | + | |
398 | 397 | | |
399 | 398 | | |
400 | 399 | | |
| |||
0 commit comments