Commit fb9d753
[ruby/rubygems] Remove
This PR removes the `#verify_gz` method because it is redunant and
unnecessary.
Previously the `data.tar.gz` would get read twice for every file - once
in `verify_gz` and once in `extract_files`. The `extract_files` method
verifies the `data.tar.gz` when it reads it, and raises an error if
unzipping it fails.
The `verify_gz` code can be seen in some profiles as a hotspot -
although not major - as it accounts for between 9% and 17% of time, but
only when the installation thread doesn't have native extensions or
plugins.
ruby/rubygems@737c82986cverify_gz
1 parent a33fde1 commit fb9d753
2 files changed
+4
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 681 | + | |
687 | 682 | | |
688 | 683 | | |
689 | 684 | | |
| |||
711 | 706 | | |
712 | 707 | | |
713 | 708 | | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | 709 | | |
727 | 710 | | |
728 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
| 861 | + | |
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
| 869 | + | |
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| |||
0 commit comments