Login  Register

Efficiency Modification

Posted by mduggan32 on Nov 06, 2012; 9:30pm
URL: https://forum.librecad.org/Efficiency-Modification-tp5707224.html

Hi,
In rs_math.h, there are functions in the quadratic solver class that take in vectors of elements and then return the solved variables of the equation. I believe that these vectors, which are used for both the input and output of the quadratic solvers, could be replaced by statically allocated arrays which would allow for quicker random access and possibly less overhead with copy constructors for the std::vectors used in the class.
This is for a data structures class where we have to evaluate efficiency when we change data structures in a complex piece of code. What do y'all think? Do you see any problems with this modification?