Opened 3 years ago

Closed 3 years ago

#941 closed enhancement (fixed)

BamRead::sequence(2) speedup

Reported by: Peter Owned by: Peter
Priority: minor Milestone: yat 0.18
Component: omic Version: trunk
Keywords: Cc:


In BamRead::sequence(string, vector<uint8_t>) there is a loop over the input string calling sequence(size_t, uint8_t) for each char. The latter function involves some bit magic to only alter the first/last half of the byte, and it might be faster to set the whole byte (i.e. two nucleotides) in one go.

Change History (2)

comment:1 Changed 3 years ago by Peter

Milestone: yat 0.x+yat 0.18
Status: newaccepted

comment:2 Changed 3 years ago by Peter

Resolution: fixed
Status: acceptedclosed

In 3889:

closes #941

Note: See TracTickets for help on using tickets.