Dne 12.10.2011 13:43, jsuchome@svn2.opensuse.org napsal(a):
+int SnapperAgent::getIntValue (const YCPMap &map, const YCPString &key, const int &deflt)
Const reference to int doesn't make much sense, const int is enough. Size of int is 32bit on both i586/x86_64, but pointer to int (actually any pointer), which is used for passing reference, is 64bit on x86_64. (And reference needs a memory access while int can be stored directly in a CPU register - but it depends on gcc optimizations I guess...) -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org