|
From: Luigi B. <lui...@gm...> - 2007-04-05 11:40:13
|
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 |