RE: [GD-Windows] memory alignment vs passing by value
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2004-12-02 00:37:42
|
> I measured the time of computing 100 million bilinear interpolation using > dot products, and changing the dprod operation to accept a const reference > instead of the const value makes the test run an order of magnitude slower!! Is this Evil Aliasing, Part II ? You could find out by disassembling both versions and comparing. If it's re-loading through the reference pointer all the time, then it's probably aliasing related. References are really pointers, so they can introduce (false) aliasing hazards. Cheers, / h+ |