Commit ae79f84
Avoid String.split per module in IEx autocomplete
Replace String.split/Enum.at/length with binary_part and :binary.match
to extract submodule names. This avoids allocating intermediate lists
of string fragments for every matching module.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8b9bf62 commit ae79f84
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
513 | | - | |
514 | | - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
519 | | - | |
| 517 | + | |
| 518 | + | |
520 | 519 | | |
521 | 520 | | |
522 | 521 | | |
523 | 522 | | |
524 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
525 | 531 | | |
526 | 532 | | |
527 | 533 | | |
| |||
0 commit comments