Skip to content

Conversation

@Artoria2e5
Copy link

This should speed up the skipping of stage 2 in the typical two-worker case. https://www.mersenneforum.org/node/21462?p=1094465#post1094465

@Artoria2e5
Copy link
Author

Oh forgot to do the header thing. Well it's not like I'm pretending this is tested..;

@Artoria2e5
Copy link
Author

Artoria2e5 commented Nov 4, 2025

A more "proper" fix would try to memorize the position of where we last stopped so we don't try to look for a stage 1 all over again. But that sounds like a lot of work.

It will also not change the linear-times-linear-is-quadratic nature because unless we also remember line start/end positions… so kinda pointless anyways.

@Artoria2e5
Copy link
Author

Moved to primesearch/Prime95#1

@Artoria2e5 Artoria2e5 closed this Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant