RE: memory alignment vs passing by value
"Jon Watte" <[email protected]> Wed, 1 Dec 2004 16:37:49 -0800
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
> 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+ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Gamedevlists-windows mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555