cgvis the IT thing

From Signals back to Callbacks (Results)

Posted on February 18, 2010

See this Post for my motivation.

With the exchange of boost::signals2 to boost::function as delegates the project saved around 40% compilation time and 10% executable size. There are even Faster Delegates, may be we should give them a try.

Filed under: Programming No Comments

Header Compile Time

Posted on February 4, 2010

Just coming from the Signals/Callback messup I took a short look of compiling (parsing, no instantiation) times of some C++ and Boost Headers I usually have always on.

On my machine (GCC 4.4, x86-64) without any other flags (Optimization did not seem to have a influence). I always took the user-time; no waiting for data or such things.

Filed under: Uncategorized No Comments

From Signals back to Callbacks

Posted on February 4, 2010

Traffic Light! by Flickr user 92wardsenatorfe, CC-BY-ND
Most signals in our project are never planned to be a signal, e.g. whole communication between looslely coupled parts of a component. They could be exchanged through non-thread-safe callbacks (with boost::bind / boost::function) instead of boost::signals2' signals, as we know their instantiation time (during component init) and they usually just link to one object. Interestingly not only performances increases, also compile time seems to be heavy bound by boost::signals2. The compiler was g++ 4.4 (current Ubuntu)