diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2013-09-14 12:58:13 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2013-09-14 12:58:13 -0400 |
commit | 8d1e990611a128d123e47f8a068ff9b045794db4 (patch) | |
tree | 3a7154e0bee1809c0e29fd7df646e64491b3c28a /kmer_total_count.c | |
parent | 4ae5cfe9e627429ee4d27390da9eb07a410f8831 (diff) |
improve performance of convert_kmer_to_index by using a bitwise OR to convert our characters to lowercare: str[i] | Ox20, and reduce the number of switches as a result
Diffstat (limited to 'kmer_total_count.c')
-rw-r--r-- | kmer_total_count.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kmer_total_count.c b/kmer_total_count.c index 23ca512..6d07e13 100644 --- a/kmer_total_count.c +++ b/kmer_total_count.c @@ -13,8 +13,9 @@ int main(int argc, char **argv) { char *line = NULL; size_t len = 0; ssize_t read; + long i = 0; + unsigned int kmer = 0; - unsigned long i = 0; unsigned long width = 0; unsigned long long *counts; |