Skip to content

Commit

Permalink
Update performance tips
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch authored Sep 16, 2023
1 parent 5ad044e commit 9f6fef6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/C_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ int* get_primes(int n, int start)
* If you are repeatedly iterating over the same primes in a loop, you should use
```primesieve_generate_primes()``` or ```primesieve_generate_n_primes()``` to store
these primes in an array instead of using a ```primesieve_iterator```.
these primes in an array (provided your PC has sufficient RAM memory) instead of using
a ```primesieve_iterator```.
* ```primesieve_next_prime()``` runs up to 2x faster and uses only
half as much memory as ```primesieve_prev_prime()```. Oftentimes algorithms
Expand Down

0 comments on commit 9f6fef6

Please sign in to comment.