[Insight-developers] Explicit instantiation

Brad King brad.king at kitware.com
Tue Apr 25 08:43:47 EDT 2006


Gaetan Lehmann wrote:
> Would it be possible to use explicit template instantiation to produce  
> some libs shared between all the languages wrapped ? WrapITK is already  
> provide a convenient way to select a consistent set of template  
> parameters, and is also able to generate code - perhaps can we use it 
> to  generate code for explicit instantiation ?
> - Select instantiations with WrapITK
> - build the selected instantiation in (several) libs
> - build the wrappers for all the selected languages
> - link the wrappers with the libs produce before
> It would highly decrease the build time with several languages, and 
> highly  decrease the total size of binary files.
> It seem that the libraries stay in memory when the program exit, and 
> so,  reloading the module in python would be a lot faster.

Yes, definately.  This has been my plan all along, and is the reason 
didn't want to put WrapITK into ITK natively until the explicit 
instantiation was done.  Combining them is clearly the right way to go. 
  I'm just trying to take one step at a time right now.

-Brad


More information about the Insight-developers mailing list