Ben Greear <[email protected]> writes:
> 2) Change some pass-by-value string arguments to const string& in
> router-mgr.  This will improve performance and a small bit of memory
> usage.

Hi Ben,

This, and passing string literals to functions/methods that expected
string parameters, was identified as being responsible for a huge
proprortion of the static footprint bloat during the "XORP on a Diet"
project I did while at the company. Most, if not all, of the problems
I found and fixed made it back to the public sources.

I used rather rudementary tools (grep, nm, perl scripts, etc.) to
identify the sources, so I'm not terribly surprised that others still
exist.

Fortunately, these tend to be uncontroversial and quite easy to fix.

    --jtc

-- 
J.T. Conklin

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to