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

Optimization for count_orders #64

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

francolq
Copy link
Collaborator

Replace foldl with direct recursion and remove call to is_script. Also: new test for count_orders.

Tested with aiken v1.0.24-alpha+982eff4.
Before:
│ PASS [mem: 220233, cpu: 81559750] count_orders_test

After:
│ PASS [mem: 205107, cpu: 75765469] count_orders_test

…d remove call to is_script. Also: new test for count_orders.
@Quantumplation
Copy link
Member

Oh wow, nice, thank you!

@Quantumplation Quantumplation self-requested a review March 5, 2024 07:41
@Quantumplation Quantumplation merged commit 1fe274c into main Mar 5, 2024
1 check passed
@Quantumplation Quantumplation deleted the francolq/count_orders_optimization branch March 5, 2024 07:46
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