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

Decode BAM sequence with less code. Dispatch function at dynamic link time rather than at run time. #135

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

rhpvorderman
Copy link
Collaborator

Two improvements coming from htslib. Credit for simplifying the bam decode goes to @jmarshall.

See: samtools/htslib#1795

For the use of constructor:
samtools/htslib#1786

Using the constructor attribute makes the code simpler. Another change is that the fallback code now also always use a function pointer and cannot inline. This also makes the code simpler.

@rhpvorderman
Copy link
Collaborator Author

@marcelm, friendly reminder ping. This exact code is already merged in htslib. I hope you had a nice holiday!

@marcelm
Copy link
Owner

marcelm commented Jul 17, 2024

Still not really working fully, but if it’s identical to what is in htslib, I’ll just merge it.

@marcelm marcelm merged commit c89d133 into marcelm:main Jul 17, 2024
16 checks passed
@rhpvorderman
Copy link
Collaborator Author

Still not really working fully

I don't understand, can you elaborate?

@rhpvorderman rhpvorderman deleted the betternibbledecode branch July 17, 2024 10:40
@marcelm
Copy link
Owner

marcelm commented Jul 17, 2024

I am still on vacation and don’t systematically do work-related things that are on my to-do list, only some things that I feel like doing. I’ll be back at work middle of August.

@rhpvorderman
Copy link
Collaborator Author

Oh sorry. I saw a github reply somewhere and assumed you were back. I won't ping you anymore before the middle of August.

@marcelm
Copy link
Owner

marcelm commented Jul 17, 2024

Yes, I thought so (that you saw something from me), which is why I shouldn’t have done anything at all ;-).

@rhpvorderman
Copy link
Collaborator Author

Well now that I am in the know I won't do it anymore ;-). Fun fact: I wrote this code during my holiday. Writing assembly in the form of intrinsics is simply too much fun.

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