[geos-devel] How to make compilation time shorter

Mateusz Łoskot mateusz at loskot.net
Mon Mar 6 05:55:54 EST 2006


strk at refractions.net wrote:
> I'm all for the refactoring.

Yes, I'm sure you are.

> C++ API users should include the geos.h file, anyway,
> so we can provide the same definition from it by including
> the splitted headers.

Yes, that's the idea.

> Also, I've been experimenting the use of a separate file
> for class inlines. So far we only have LineSegment.inl but
> the idea is to use a file for each class with inline elements.
> The advantage of this is we can switch between inlined and
> non-inlined versions by defining an USE_INLINE macro.

OK. The only drawback I see is about some additional work for maintenance.

> This way, developers can use the non-inlined version to make
> build time faster when changing inline funx bodies.
> 
> Next candidate for this would be Coordinate.

So, what about splitting geom.h into separate headers?
Should we start?
I could do it together while working on Unit Tests.

Cheers
-- 
Mateusz Łoskot
http://mateusz.loskot.net



More information about the geos-devel mailing list