Commit 2e68130
committed
cmp: avoid using advanced rust formatting for -l
Octal conversion and simple integer to string both show up in profiling.
This change improves comparing ~36M completely different files wth both
-l and -b by ~11-13%.1 parent 5005741 commit 2e68130
3 files changed
Lines changed: 40 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
486 | 504 | | |
487 | 505 | | |
488 | 506 | | |
| |||
520 | 538 | | |
521 | 539 | | |
522 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
523 | 545 | | |
524 | 546 | | |
| 547 | + | |
525 | 548 | | |
526 | 549 | | |
527 | | - | |
528 | | - | |
529 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
530 | 553 | | |
531 | | - | |
| 554 | + | |
532 | 555 | | |
533 | 556 | | |
534 | 557 | | |
| |||
540 | 563 | | |
541 | 564 | | |
542 | 565 | | |
| 566 | + | |
543 | 567 | | |
544 | 568 | | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
549 | 573 | | |
550 | 574 | | |
551 | 575 | | |
| |||
0 commit comments