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

Use vec.extract_if(…) for constant lifting #786

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Use vec.extract_if(…) for constant lifting #786

merged 3 commits into from
Nov 7, 2023

Conversation

JonasWanke
Copy link
Member

@JonasWanke JonasWanke commented Nov 2, 2023

Before: cargo run --release -- run packages/Examples/fibonacci.candy
  Time (mean ± σ):      2.273 s ±  0.051 s    [User: 1.966 s, System: 0.303 s]
  Range (min … max):    2.202 s …  2.353 s    10 runs

After: cargo run --release -- run packages/Examples/fibonacci.candy
  Time (mean ± σ):      2.140 s ±  0.031 s    [User: 1.842 s, System: 0.298 s]
  Range (min … max):    2.107 s …  2.193 s    10 runs

Checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

@JonasWanke JonasWanke added the T: Performance Type: Performance Improvements label Nov 2, 2023
@jwbot jwbot added the P: Compiler: Frontend Package: The compiler frontend label Nov 2, 2023
@jwbot jwbot enabled auto-merge November 2, 2023 15:28
@jwbot jwbot merged commit f79988f into main Nov 7, 2023
11 checks passed
@jwbot jwbot deleted the use-extract-if branch November 7, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler: Frontend Package: The compiler frontend T: Performance Type: Performance Improvements
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants