On 28/06/2020 14:18, J. Gareth Moreton wrote: > Thanks Jonas. I'll see what I can put together. A record with a single > field is a bit of a special case, but one I'll keep in mind. More than > anything I'll have to study the disassembly to see what's happening, and > if things are faster with primitive types simply because they're > register variables (which are always faster than stack variables even on > L1) or due to something else.
This issue is not register versus memory, it's "register + a bunch of masking and inserting" versus memory, plus the code size overhead (which will probably not have any noticeable effects in a small benchmark). Jonas _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel