Hi, Am Samstag, dem 19.10.2024 um 13:03 +0000 schrieb Steffen Möller via Emc-developers: > Hello, > > somewhen during the translations I the posemaths routine popped up > IIRC and I had wondered about the passing by value of those doubles. > For 64bit machines this likely does not make too much of a > difference, and the compilers are not stupid either, but for 32bit > machines and without link-time optimisation, I guess it helps when > the value does not need to be copied. > [...] > Comments?
Is this really worth doing? I don't think it will make any measureable difference -- I would not bother. That stuff probably is not even used. In the long run, the schism between the C-structs and the C++ parallel- implementation has to go IMHO. Those methods could be moved to the header file and marked constexpr/consteval. I think it should be possible to inherit from the C-structs and in the C++ code just downcast. Also it seems codesize increases with const reference: https://godbolt.org/z/MzTPb9jx5 vs. https://godbolt.org/z/xzrneEYdT best regards Robert _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers