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

feat: use loops instead of recursion #21

Merged
merged 11 commits into from
Feb 11, 2025

Conversation

michaeljklein
Copy link
Contributor

@michaeljklein michaeljklein commented Feb 4, 2025

Description

Problem*

Resolves noir-lang/noir#7213

Summary*

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the benefit of maintaining the recursive implementations? Assuming this is still here just for validating correctness for now, can remove when we're closer to merging.

src/quicksort/quicksort_recursive.nr Outdated Show resolved Hide resolved
src/quicksort/quicksort_recursive_explicit.nr Outdated Show resolved Hide resolved
@michaeljklein michaeljklein marked this pull request as ready for review February 4, 2025 18:32
src/lib.nr Outdated Show resolved Hide resolved
Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits but otherwise LGTM

src/quicksort/quicksort.nr Outdated Show resolved Hide resolved
src/quicksort/quicksort.nr Outdated Show resolved Hide resolved
src/quicksort/quicksort.nr Outdated Show resolved Hide resolved
src/quicksort/quicksort_explicit.nr Outdated Show resolved Hide resolved
src/quicksort/quicksort_explicit.nr Outdated Show resolved Hide resolved
michaeljklein and others added 2 commits February 7, 2025 15:32
@michaeljklein michaeljklein merged commit 153fb72 into main Feb 11, 2025
8 checks passed
@github-actions github-actions bot mentioned this pull request Feb 11, 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
3 participants