Box_intersection_d using pointers or not?
At some point @MaelRL reported that using a pointer is slower than using a reference to the input object. I'd like to know what is the final recommendation so that we can update all the internal implementations we have (as I'm also currently writing new one). The package doc should probably also be updated with clear recommendations.
IsoCpp FAQ recommends the usage of References .Since References are implemented using Pointers underneath,they should run at the same speed.
References can be faster than pointers, in specific cases, because the compiler can be sure that a given reference, once initialized, always points to the same object.
That's not the point here. What matters is the internal of the Box_intersection_d package that is doing some sorting/copying ...