boost::function adding a lot of binary overhead

Hello all: I'm using boost::function in a few places so that I can use boost::bind to pass member pointers on objects, static member functions or just normal functions, but I'm noticing that I get a ton of extra overhead when compiling after I use boost::function in a new place. Is there a fix for this? I really like boost and some of it's features, but it's making my binaries huge. -- Take care, Ty my website: http://tds-solutions.net my blog: http://tds-solutions.net/blog skype: st8amnd127 “Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.” “If Java had true garbage collection, most programs would delete themselves upon execution.”

I'm using boost::function in a few places so that I can use boost::bind to pass member pointers on objects, static member functions or just normal functions, but I'm noticing that I get a ton of extra overhead when compiling after I use boost::function in a new place. Is there a fix for this? I really like boost and some of it's features, but it's making my binaries huge.
What optimization level do you use?

Hello: It makes the binary a lot larger with either O0, O1, and O3. even with debugging symbols stripped, and O3 my binary is 1.2m. Part of this is the stl, but a lot of it is boost. On 5/8/2011 4:17 PM, Igor R wrote:
I'm using boost::function in a few places so that I can use boost::bind to pass member pointers on objects, static member functions or just normal functions, but I'm noticing that I get a ton of extra overhead when compiling after I use boost::function in a new place. Is there a fix for this? I really like boost and some of it's features, but it's making my binaries huge. What optimization level do you use?
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Take care, Ty my website: http://tds-solutions.net my blog: http://tds-solutions.net/blog skype: st8amnd127 “Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.” “If Java had true garbage collection, most programs would delete themselves upon execution.”

2011/5/9 Littlefield, Tyler
Hello all: I'm using boost::function in a few places so that I can use boost::bind to pass member pointers on objects, static member functions or just normal functions, but I'm noticing that I get a ton of extra overhead when compiling after I use boost::function in a new place. Is there a fix for this? I really like boost and some of it's features, but it's making my binaries huge.
How about trying this: http://lists.boost.org/Archives/boost/2010/10/172593.php ?
participants (3)
-
Igor R
-
Littlefield, Tyler
-
TONGARI