Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/coding-style-tp9335p9340.html
On Thu, 2007-04-05 at 12:46 +0200, DU VIGNAUD DE VILLEFORT FRANCOIS
GASAPRD PHI wrote:
> You may have noticed that I have done some changes in the inclusions
> yesterday. The goal was to include less header files in the header
> files (to avoid cascading inclusion). To do so I have removed uneeded
> or too general inclusions. I have also used forward declarations and
> now I have doubts about the relevancy this trick. Indeed I have the
> feeling that it simply moves some inclusions to the client code. So
> one way or another compiler will have parsed the same amount of header
> files to compile a client file... Any thoughts?
Possibly. At the end of the day, the client code must instantiate all
needed classes, so it's likely that it includes everything.
However, the advantage is in compilation times for the library. On the
one hand, the overall time can decrease as each source file might
include less headers. On the other hand, and more importantly,
incremental compilations are faster since changing a header file might
cause less source files to be recompiled.
This said, I'd love to see experimental data on compilation times before
and after the changes...
> Another one, what about refactoring the QL folders hierarchy since we
> are using svn?
Sure. Any ideas?
Luigi
----------------------------------------
Blessed is the man who, having nothing to say, abstains from giving
wordy evidence of the fact.
-- George Eliot
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev