-
Notifications
You must be signed in to change notification settings - Fork 210
refactor: removed lazy_static! dependency and cleaned up scores #639
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work! However, I think the maintainabiliy of lazy_static is an advantage here that is more important than the additional dependency. However, I would be fine with a build-time based approach as a replacement for the lazy-static.
Probably worth pointing to the lazy static deprecation issue as a reference. Seems like lots of people lean to migrating to |
Or even use |
Following Tedil's advice, I have replaced where we used to use lazy_static with LazyLock. I still think using a Array2 in BLOSUM matrix is overkill. Using a fixed sized array and very simple index math is enough. |
This of course increases the |
I wonder how sensitive is this.. Maybe there is no point in making this update if it means we have to force users to use a higher version which might break things. |
I don't feel like this would be an issue. Would be happy to get @tedil opinion on this though! |
hi, I am reviewing the code and I think we should prefer a simpler approach to a few things.
lookup
in all scores.