From: <jbc...@sw...> - 2013-11-06 16:11:43
|
---- Nathan Hurst <nj...@nj...> wrote: > I'm around, not much time though. Is there a real benefit to porting > bezier-utils to vector? I did it once before and it was a lot of work > and lead to some subtle bugs. What benefit do you see? > > I would rather we focused on careful profiling and optimisation. The main gains I see are: exception safety / memleaks, crash safety, and maintainability/readability. Note: at zero performance cost. Yes, we can work on performance optimization, but I think that's pointless for code that is in a "bad" state. Note that vectors do not make code slow at all, and when we better integrate this particular piece of code using the 'standard' 2geom types, it might have the side effect of making things a little bit faster because of less conversion between data structures. So my plan was: C++ify code, fix the bugs that show up, see what can be improved performance-wise and interface-wise. By the way, a big reason for me to switch to C++11 is to see if it would improve performance (e.g. move semantics) while maintaining our high-level of abstraction. I guess we can start writing performance tests/toys, to see if the changes really bring anything. The new C++11 <chrono> library seems to provide portable high-precision clock... I have not tested it yet though. regards, Johan |