On 27/11/2020 01:46, Ryan Joseph via fpc-pascal wrote: >> On Nov 22, 2020, at 4:08 AM, Florian Klämpfl via fpc-pascal >> <fpc-pascal@lists.freepascal.org> wrote: >> >>> Well... If the compiler can make such a difference, >> This are the big low hanging fruits, their are only a few :) In particular >> the compiler benefits a lot from this as it iterates linked lists a lot. > Just curious, how does the "prefetch intrinsic" help with iterating linked > lists?
By prefetching the next element in the background while processing the current element. Since the elements are not necessarily placed behind each other in memory, the processor's built-in prefetcher can't handle this. Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal