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

Linear Clash.Sized.Vector.reverse #2871

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Linear Clash.Sized.Vector.reverse #2871

merged 1 commit into from
Jan 7, 2025

Conversation

kleinreact
Copy link
Member

The current implementation of Clash.Sized.Vector.reverse has a simulation runtime that is quadratic in the input. This PR improves this to a linear version.

Still TODO:

  • Write a changelog entry (see changelog/README.md)
  • Check copyright notices are up to date in edited files

@kleinreact kleinreact mentioned this pull request Jan 6, 2025
2 tasks
Copy link
Member

@martijnbastiaan martijnbastiaan left a comment

Choose a reason for hiding this comment

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

Wow, nice find.

@kleinreact kleinreact merged commit e07ea48 into master Jan 7, 2025
13 checks passed
@kleinreact kleinreact deleted the linear-vec-reverse branch January 7, 2025 07:51
mergify bot pushed a commit that referenced this pull request Jan 7, 2025
Improve the simulation runtime of `Clash.Sized.Vector.reverse` from quadratic to linear.

(cherry picked from commit e07ea48)

# Conflicts:
#	clash-prelude/src/Clash/Sized/Vector.hs
martijnbastiaan pushed a commit that referenced this pull request Feb 10, 2025
Improve the simulation runtime of `Clash.Sized.Vector.reverse` from quadratic to linear.

(cherry picked from commit e07ea48)
martijnbastiaan pushed a commit that referenced this pull request Feb 11, 2025
Improve the simulation runtime of `Clash.Sized.Vector.reverse` from quadratic to linear.

(cherry picked from commit e07ea48)
martijnbastiaan pushed a commit that referenced this pull request Feb 11, 2025
Improve the simulation runtime of `Clash.Sized.Vector.reverse` from quadratic to linear.

(cherry picked from commit e07ea48)

Co-authored-by: Felix Klein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants