c++ - I want to make a wrapped acces type for certain internals of one of classes and I have some performance questions -
I'm writing an abstract matrix class (and some solid subclasses) for use on very different hardware / architecture etc. Want to write a line and column type, which provides a transparent context for the rows and columns of the matrix.
However, I want to tune for performance, so I want this class to be essentially a compiler's construction. In other words, I am ready to sacrifice some dev temples as little as possible to the upper part of these deities.
I think all (small) ways want to be inline? Keep the structure short? any other suggestions?
The design for efficiency golden rule number 1 is really completely completely completely completely Understand and appreciate
Understanding the cost of each compiler you are using
Li>
Then test for different realistic testing cases and tests on different hardware to identify the performance issues; I have done this many times and as long as you are writing in assembler, performance hits can be in the most awkward places.
If it adds very slow hardware, you can not add hardware optimization.
Comments
Post a Comment