Skip to content

Conversation

@msahraeian
Copy link
Contributor

Improving preprocessing speed

@msahraeian msahraeian requested a review from marghoob April 19, 2021 19:35
// std::cout << "elapsed_3p0 time: " << elapsed_seconds_3p0.count() << "s\n";
// auto start_3p1 = std::chrono::system_clock::now();

if (calculate_qual) {

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.

bool calculate_qual_stat_ = false;
bool fully_contained_ = false;
float min_allele_freq_ = 0.01;
float snp_min_allele_freq_ = 0.01;

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();

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants