question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove table copies from tree_sequence_t and add options to share tables

See original GitHub issue

It should now be possible to make a tree sequence based on a “borrowed” or “stolen” reference to a table_collection_t. For a borrowed reference, we store a pointer to the supplied tables, and do not free these tables when the tree sequence object is destroyed. For a stolen reference, we store a pointer to the supplied table collection which we free when the tree sequence object is destroyed. These can be specified with (mutually exclusive) flags. The default behaviour should be the present case, where we take a copy of the argument table_collection_t.

This behaviour will be useful for simulations, where we really don’t need to have two copies of the same tables. However, we’ll need to be careful to ensure that the underlying tables don’t get modified. Possibly need to add some locks to the tables to ensure this.

See also tree_sequence_load for current wasteful behaviour.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jeromekellehercommented, Jul 18, 2022

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

1reaction
molpopgencommented, Jul 23, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resize a table by adding or removing rows and columns
You can use the Resize command in Excel to add rows and columns to a table: Click anywhere in the table, and the...
Read more >
How to change Excel table styles and remove table formatting
The tutorial explains how you can quickly apply or change table styles and remove table formatting keeping all features of an Excel table....
Read more >
Add or delete a table in Pages on iPhone - Apple Support
Copy and paste a table · Tap the table, then tap the Table handle · Tap Copy. · Tap once to deselect the...
Read more >
Share a workspace or table - Tables Help Center - Google Help
This allows someone to share a workspace with a collaborator, without needing to share all the tables within the workspace (see Adding tables...
Read more >
Shared Objects - Caspio Online Help
You can share Table, View, Authentication, Connection, Style, and Localization objects. DataPages cannot be shared but they can be copied into another app....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found