forked from GerbilSoft/rom-properties
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[svrplus] Reduced the executable size by not using "large" functions.
Allocate ThreadParams statically instead of using malloc(). Only one instance of ThreadParams is needed, since only one install/uninstall thread is used at a time. setlocale() isn't needed, since we don't have any localization here. Using setlocale() adds 27,136 bytes to the statically-linked executable. Use _tcscpy_s(), _tcscat_s(), _itot_s(), and _ultot_s() instead of _sntprintf(), since the printf functions add 22,016 bytes. Total svrplus.exe reduction: (MSVC 15.9.18, 32-bit release build) - Before: 141,824 bytes - After: 92,672 bytes - Diff: -49,152 bytes
- Loading branch information
1 parent
fdb4e6d
commit 91cd531
Showing
1 changed file
with
103 additions
and
68 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