Boost logo

Geometry :

Subject: [ggl] spacial index construction interface
From: Bruno Lalande (bruno.lalande)
Date: 2011-03-10 06:00:17


>
> Moving to visitors shouldn't take long. The only one improvement is a lot
> smaller vtables for nodes. We have a lot of virtual functions pointers we
> could get rid of but I don't know if it will give us a big performance
> change.

What it would actually bring is:
- better performance - can be very perceivable on large trees
- better maintainability - having a virtual function for each single thing
one specific child class can do forces you to maintain your whole hierarchy
for each new operation.
- avoid type-testing and all the headaches it can cause

Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20110310/b07437cc/attachment.html


Geometry list run by mateusz at loskot.net