mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
4a35c974e9
Why?? :-) Another one of the little micro-optimizations that I just came across: If you allocate a variable in a sub-block like the "fstring sharename" in write_file(), gcc even with -O3 will allocate this variable unconditionally on the stack at the beginning of the routine. So with eliminating this fstring we cut 256 bytes of stack in a very hot code path writing to a file. It might make us a bit more cache-friendly. This would probably not be worth a second look if it involved larger code changes, but this one was just too simple to let it pass :-) |
||
---|---|---|
.. | ||
tests | ||
load.c | ||
lpq_parse.c | ||
notify.c | ||
nt_printing.c | ||
pcap.c | ||
print_aix.c | ||
print_cups.c | ||
print_generic.c | ||
print_iprint.c | ||
print_svid.c | ||
printfsp.c | ||
printing_db.c | ||
printing.c |