Optimize my code =)

thedeemon dlang at thedeemon.com
Fri Feb 14 10:01:40 PST 2014


On Friday, 14 February 2014 at 16:00:09 UTC, Robin wrote:
> class Matrix(T = double) {
> T opIndex(size_t row, size_t col) const {

First of all make sure you it's not virtual, otherwise each 
element access will cost you enough to make it 10x slower than 
Java.


More information about the Digitalmars-d-learn mailing list