Can I enforce the inlining of the STL algorithms?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

There are some STL algorithms (notably the binary_search, lower_bound and upper_bound) that are
not declared as inline in libstdc++, although inlining them can sometimes lead to great
performance improvements. [1] (Code bloating is the reason why.)

Is there something that I can do, other than editing the libstdc++ files, in order to persuade the
compiler to inline these STL algorithms? (even -O3 seems not good enough).

Best regards
Jim Xochellis

References
1. http://gcc.gnu.org/ml/libstdc++/2007-04/msg00000.html



	

	
		
___________________________________________________________ 
Χρησιμοποιείτε Yahoo!; 
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux