forked from rust-bio/rust-htslib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Potential speed up for CigarString::try_from(&str) (rust-bio#301)
* Swapped in a new cigar_str parser for try_from and added tests using the old parser (now a test function only) * Update src/bam/record.rs Co-authored-by: David Laehnemann <[email protected]> * Update src/bam/record.rs Co-authored-by: David Laehnemann <[email protected]> * switched a str to a char, add new test cases, hard coded expected test case results, and removed the old parsing function. * removed a to_owned because of clippy * Added the doc test for cigar try_from * check for ASCII only in CIGAR strings and distinguish TryFrom for &[u8] and &str * clean up change that was not possible via suggesiton * fix closing delimiter * fix check for non-ASCII characters Co-authored-by: Till Hartmann <[email protected]> * adjust formatting * clippy is always right * remove old `impl TryFrom<&[u8]> for CigarString {}` * fix types * cargo fmt Co-authored-by: David Laehnemann <[email protected]> Co-authored-by: Till Hartmann <[email protected]>
- Loading branch information
1 parent
bf9e2de
commit 0a49e7c
Showing
1 changed file
with
177 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters