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

Is phenotype computed too much? #21

Open
frederic-michaud opened this issue Jun 24, 2019 · 0 comments
Open

Is phenotype computed too much? #21

frederic-michaud opened this issue Jun 24, 2019 · 0 comments

Comments

@frederic-michaud
Copy link
Collaborator

Outputing the phenotype stat for a large number of patch make quantinemo incredibly slow. I suspect that this is coming from computing it too much.

This line probably loop over all patch (since we want to compute q.meanP001, q.meanP002, etc.

for (REC_IT rec = _recorders.begin(); rec != _recorders.end(); rec++) {

It is then calling this line:

setMeanAndVar_Vp();

This line ask to recompute it for every patch. So we have two intrictate loops computing the phenotype. See this line:

for(unsigned int i=0; curPop!=endPop; ++curPop, ++i){ // for each patch

@frederic-michaud frederic-michaud changed the title Is phenotype computed too much Is phenotype computed too much? Jun 24, 2019
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

No branches or pull requests

1 participant