Skip to content
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

Open
wants to merge 10 commits into
base: extended_standalone
Choose a base branch
from

Conversation

msahraeian
Copy link
Contributor

Improving preprocessing speed

@msahraeian msahraeian requested a review from marghoob April 19, 2021 19:35
// 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) {

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;

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.

2 participants