aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-06 20:57:03 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-06 20:57:03 -0400
commit99f307c017ae98b1f3967e9af44688f4ebdc4ba1 (patch)
tree51c049c1acac75ad7361e47b82e21e3a2d24d4af
parent3039901ec7b2e1ba076a3a181c7430df0ac1c46c (diff)
Update premature_optimization.md
-rw-r--r--premature_optimization.md11
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
+
+
+