c - Should I optimize for size (-Os) for an I/O application -


i have c application heavily network i/o bound. compiled -o2 on gcc. building application -os shows gives 20% size reduction. basic testing showed no measurable decrease (or increase) in performance.

is case building -os? there reason not this? i've never seen program has been compiled size no matter how time spends on i/o.

optimization shouldn't affect program's operations. therefore, no type of optimization should affect network i\o used program, , else matter. if program sends 10 kilobytes, send same after optimization.

optimization may affect way structs aligned among other things (like size of code, memory usage , more) won't affect logic @ (if programmed correctly).

generally, binary files tend relatively small (a 1mb binary file extremely large one) more common optimize speed rather size. however, you.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -