From 8d1e990611a128d123e47f8a068ff9b045794db4 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 14 Sep 2013 12:58:13 -0400 Subject: 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 --- kmer_total_count.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kmer_total_count.c') 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; -- cgit v1.2.1