S
Stephen Sprunk
Skybuck Flying said:That's kinda interesting/cool... virtual overloaded operators.
However: IT'S HELLISH SLOW when looking at the assembler.
It might not be as slow as delphi's dynamic array referencing count and
such but still.. (however not fair to compare... because this c+= example
ain't dynamic infinite scalable )
Way to slow to be usualable for my purposes.
It was interesting to see C++ virtual overloaded operators in action...
maybe making the operators virtual would not be necessary if other tricks
used ? I am not good enough in C++ to try other tricks.
I also explored some other ideas, non of which are statisfieng.
Really, really sad.
I will probably have to convert my code to 64 bit emulated ints and say
goodbye to performance for 32 bit cases !
And, if you'd bothered to read my posts, you'd see that's exactly what I
told you you'd see: "Simply running in 64-bit mode (even emulated) all the
time will be faster on modern CPUs than trying to decide at runtime which is
better."
I didn't have to run any tests to know that, merely understanding how the
CPUs and compilers actually work. You might try investigating those things
before posting, as it'll save you (and us) a lot of time and effort.
S