arXiv · 1111.3297
Cache optimized linear sieve
Abstract
Sieving is essential in different number theoretical algorithms. Sieving with large primes violates locality of memory access, thus degrading performance. Our suggestion on how to tackle this problem is to use cyclic data structures in combination with in-place bucket-sort. We present our results on the implementation of the sieve of Eratosthenes, using these ideas, which show that this approach is more robust and less affected by slow memory.
Explore related subjects
Keep this discovery
A. Járai, E. Vatai. 2011-11-14. Cache optimized linear sieve. https://arxiv.org/abs/1111.3297
Cite the original work for its findings. Save a collection to share your selection of sources.