-
Notifications
You must be signed in to change notification settings - Fork 40
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
Migrate from array to vector #79
Comments
Hello! I'd like to try and implement this feature if nobody is currently working on it. Could you give me a hint on |
The thing is that this code in That said, one should replace data PrimeSieve = PS !Integer {-# UNPACK #-} !(UArray Int Bool) by data PrimeSieve = PS !Integer {-# UNPACK #-} !(UArray Int Word) and take care of correct indexing of individual bits. This is better to be done in a separate small PR, before taking a stab to current issue. I believe @rockbmb had plans to fix this issue. @rockbmb are you interested to do it yourself or @tau3 may take over? |
@tau3 I have some code that may be useful to the issue, I'll push it to a branch in my fork and you can see if it helps you. |
@tau3 Here you go, hope it helps! https://github.com/rockbmb/arithmoi/tree/arrays-to-vectors 👍 |
@Bodigrim did this change introduce any changes in benchmarks? I've always been curious as to which is generally faster, |
We do not have benchmarks for these parts of the project. In There are might be some differences for AFAIU there are not many reasons to stick to |
Older parts of
arithmoi
tend to useData.Array
instead ofData.Vector
, as newer modules do. It would be nice to migrate to vectors completely. The migration should be pretty straightforward, so it is a nice first issue.The text was updated successfully, but these errors were encountered: