-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libromdata] Remove PartitionFile in a few cases where it isn't needed.
In these cases, a PartitionFile was created that started at offset 0 and had the size of the entire IDiscReader. This was used solely to allow using an IDiscReader as an IRpFile. Since IDiscReader is now derived from IRpFile, this isn't necessary. Removing PartitionFile in these cases reduces code size a bit, as well as reducing runtime overhead. Code size difference: (64-bit Gentoo Linux, gcc-13.2.0, release build, no LTO) text data bss dec hex filename 2049515 70792 704 2121011 205d33 libromdata.so.4 [before] 2048911 70760 704 2120375 205ab7 libromdata.so.4 [after] -604 -32 0 -636 -27c Difference
- Loading branch information
1 parent
80f142c
commit dc5cd78
Showing
4 changed files
with
14 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters