Code Monkey home page Code Monkey logo

Comments (7)

molpopgen avatar molpopgen commented on September 16, 2024 1

I think this would be very handy, especially for people working with large tables.

from tskit.

jeromekelleher avatar jeromekelleher commented on September 16, 2024 1

Let's close this - I don't think we want to make any more changes to the semantics post 1.0.

from tskit.

jeromekelleher avatar jeromekelleher commented on September 16, 2024

We should consider whether we want to do this for 1.0, and if it's something that we'd need to introduce backward incompatible changes later to support. I've added it to the 1.0 milestone for now.

from tskit.

jeromekelleher avatar jeromekelleher commented on September 16, 2024

From an API perspective, what we need to enable this is a flag to say "transfer ownership of this table collection", where the tree sequence would tree the table collection at the end of it's lifetime. This would allow us to implement load more efficiently.

Because we need to support this behaviour, the tables parameter and struct member must remain non-const. So the change that we need to make is to drop the const qualifier on tsk_treeseq_init.

from tskit.

jeromekelleher avatar jeromekelleher commented on September 16, 2024

I think this is done now @benjeffery?

from tskit.

benjeffery avatar benjeffery commented on September 16, 2024

Not completly as the issue talks about borrowed references. We have only implemented stealing the reference. If we think that's enough then this could still be closed.

from tskit.

molpopgen avatar molpopgen commented on September 16, 2024

I think a stolen reference is good enough. On the C side, managing memory safety of a tree sequence if a mutable table collection is "live" will be annoying. It may be a win to discourage such things.

from tskit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.