91
General / Re: Slow copying of small structures
« Last post by Nitorami on April 18, 2024, 04:41:52 pm »@Alpine: yes, understood.
@Marcov: I do not know if it is theoretically possible to optimise out the temporaries and the REP MOVSL. The compiler currently does not do it, even with inlining. Only for structures up to 8 bytes in size, VMOVSD is used instead of REP MOVSL. Operations with complex number of type single are therefore significantly faster than when using double.
@Marcov: I do not know if it is theoretically possible to optimise out the temporaries and the REP MOVSL. The compiler currently does not do it, even with inlining. Only for structures up to 8 bytes in size, VMOVSD is used instead of REP MOVSL. Operations with complex number of type single are therefore significantly faster than when using double.