Skip to content

avoid extra copy on load of tree sequences? #72

Closed

Description

@petrelharp

When loading a tree sequence, SLiM makes an extra copy of it due to a restriction that - I think - has been removed. According to this note, tsk_table_collection_load( ) now allocates columns by default, which is I think what we needed here?

This could be the cause of some early spikes in memory usage we've seen.

Activity

  1. bhaller commented on Jan 31, 2020

    @bhaller
    Contributor

    Yes, this could probably be fixed. The memory spike shouldn't be much larger than the size of the .trees file being loaded, though, right? So unless you're working with really huge .trees files, this is unlikely to be a big deal. But it'd be nice to fix it just for polish, in any case.

  2. petrelharp commented on Jan 31, 2020

    @petrelharp
    CollaboratorAuthor

    The first step, though, is to update the tskit code.

  3. bhaller commented on Jan 31, 2020

    @bhaller
    Contributor

    Oh, did that improvement not already get rolled into SLiM? I thought this got fixed quite a while ago now. Well, do a PR to bring SLiM up to the current tskit whenever you want.

  4. petrelharp commented on Jan 31, 2020

    @petrelharp
    CollaboratorAuthor

    It did get updated! But, there's been movement since then...

  5. bhaller commented on Apr 11, 2020

    @bhaller
    Contributor

    Hi @petrelharp. What's the status on this? I'm starting to think about releasing SLiM 3.4. Should a merge from tskit into SLiM happen before that happens?

  6. petrelharp commented on Apr 11, 2020

    @petrelharp
    CollaboratorAuthor

    I haven't done anything about it yet, and won't be able to get to it immediately. So, I'd like to do it, but not sure I can promise it.

  7. bhaller commented on Apr 13, 2020

    @bhaller
    Contributor

    OK. If SLiM 3.4 ships without this, that seems fine to me; I'm not aware that anyone actually cares about it. Let me know if you'd like me to wait, though.

  8. bhaller commented on Aug 30, 2020

    @bhaller
    Contributor

    I'm pretty sure this has been fixed; not sure why it didn't get auto-closed when the tskit PR was merged. @petrelharp, I'm closing this issue; please reopen if it has not in fact been fixed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions