diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2013-10-10 19:43:03 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2013-10-10 19:43:03 -0400 |
commit | 5ca66675b8cacf42a1dde84a267dc10a4752a370 (patch) | |
tree | 3fc54e57a122dcff3a7c3214e61a95bfe474dc20 | |
parent | c1121f31802fe1437fb97efabae6dc09edfce246 (diff) | |
parent | 99f307c017ae98b1f3967e9af44688f4ebdc4ba1 (diff) |
Merge branch 'master' of github.com:mutantturkey/dna-utils into HEAD
-rw-r--r-- | premature_optimization.md | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/premature_optimization.md b/premature_optimization.md index 845b6e5..2ee7129 100644 --- a/premature_optimization.md +++ b/premature_optimization.md @@ -102,14 +102,7 @@ long convert_kmer_to_index(char *str, long kmer, long error_pos) { ``` -``` - -time ./kmer_count_total ~/emp/data/sequences/study_940_split_library_seqs.fna 6 > /dev/null -real 1m4.811s -user 1m3.512s -sys 0m0.628s -``` Why was it so slow? Valgrind revealed some telling issues with my conversion function. Our switch statement was slow, and our strtol was taking up a bulk of our code. @@ -121,4 +114,8 @@ I am going to skip forward to commit #dc659709ec94c9d414df8b04f62322f74e1e4a0d. +calvin@barnabas:~/dna-utils$ time ./kmer_count_total ~/emp/data/sequences/study_940_split_library_seqs.fna 6 > /dev/null + + + |