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

genome array compacted #15

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

genome array compacted #15

wants to merge 5 commits into from

Conversation

molpopgen
Copy link
Member

Attempt to:

  1. Append new genomes to current contiguous array
  2. Then, move all genomes associated w/new births to the
    beginning of the Vec, over-writing the dead genomes.

The problem is that the borrow checker hates this type of code.
We are both taking slices to view parents and appending to the end.

Getting this to work in general will require moving away from code in src/common.rs
and trying to avoid storing borrows with lifetimes.
(However, there is a simplistic hack for non-overlapping generations, which is simply to move
all the new data from a separate instance of genomes.)

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.

1 participant