Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement short term palindrome optimization #17

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

haozhiliu
Copy link

This change implement short term palindrome optimization:

  1. Reduce scanning range threshold to 1 million sats.
  2. Skip the calculation under some condition that the specific range doesn't have palindrome.
  3. Early exit if the 1st and last digits are not same.

src/subcommand/server/rpc.rs Outdated Show resolved Hide resolved
@haozhiliu haozhiliu force-pushed the hz/implement_short_term_palindrome_optimization branch from 7c885f7 to 65181ce Compare October 5, 2023 16:39
@haozhiliu haozhiliu merged commit 6c7a36d into 6.x Oct 5, 2023
2 of 6 checks passed
nothing0012 pushed a commit that referenced this pull request Oct 12, 2023
* short term palindrome optimization

* refactor
nothing0012 pushed a commit that referenced this pull request Oct 23, 2023
* short term palindrome optimization

* refactor
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.

2 participants