-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accelerate preprocess #71
base: extended_standalone
Are you sure you want to change the base?
Conversation
// std::time_t end_time_3p0 = std::chrono::system_clock::to_time_t(end_3p0); | ||
// std::cout << "elapsed_3p0 time: " << elapsed_seconds_3p0.count() << "s\n"; | ||
// auto start_3p1 = std::chrono::system_clock::now(); | ||
|
||
if (calculate_qual) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ii
is used both in the outermost and the innermost loops. Better to have different names here.
@@ -352,18 +414,24 @@ struct Options { | |||
std::string ref_; | |||
bool calculate_qual_stat_ = false; | |||
bool fully_contained_ = false; | |||
float min_allele_freq_ = 0.01; | |||
float snp_min_allele_freq_ = 0.01; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such constants should be declared somewhere else. Things like these would be good candidates for refactoring the code.
|
||
|
||
|
||
auto start_main = std::chrono::system_clock::now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using scoped timers would simplify this performance measurement.
Improving preprocessing speed