jdelauney / SIMD-VectorMath-UnitTest

For testing asm SIMD (SSE/SSE 2/SSE 3/SSE 4.x / AVX /AVX 2) vector math library (2f, 4f, matrix, quaternion...) with Lazarus and FreePascal Compiler
Mozilla Public License 2.0
8 stars 0 forks source link

Performances Tricks #28

Open jdelauney opened 6 years ago

jdelauney commented 6 years ago

After our discussion here #27 i've made some tests for improving performances we can use

XMMWORD PTR

examples :

dicepd commented 6 years ago

Thinking about this one using word pointer is fine for the first two cases. As for using it on parameters which are fetched from global memory I am not so sure as there is no guarantee that the parameter is in memory which is addressable with just a word. I have 20 gig of ram and I do not think a word pointer can address all that.

jdelauney commented 6 years ago

XMMWORD is a 128bit pointer no ? I'm following you, it will be wiser not to use it on the parameters. But our paramters are normaly aligned and exist so......need more tests at end. But by using this trick for the first two is sure it improves performance a bit