-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
factor out multiple Basename() calls + remove arg for really_dostat
All execution paths execute Basename, this is for smaller machine code size. There is no reason for the caller of really_dostat to allocate a 0x20 to 0x40 byte long stat buffer on C stack, only for it to NOT be used by default, since the default is calling CacheStat() which doesn't take a buf pointer. Since C stack is usually in CPU cache, having a slot of usually unused C stack is bad. Now only if the buffer is needed will it be allocated on C stack.
- Loading branch information
Showing
4 changed files
with
14 additions
and
13 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