From 99f307c017ae98b1f3967e9af44688f4ebdc4ba1 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sun, 6 Oct 2013 20:57:03 -0400 Subject: Update premature_optimization.md --- premature_optimization.md | 11 ++++------- 1 file 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 + + + -- cgit v1.2.3