Skip to content

Fix memory leak in table references. - #2439

Merged
mergify[bot] merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:fix-table-circular-refs
Jul 27, 2022
Merged

mergify[bot] merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:fix-table-circular-refs

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Also simplify the class structure of Tables

Closes #2428

Based on #2434

@codecov

codecov Bot commented Jul 25, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #2439 (676f0a6) into main (ada9596) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2439   +/-   ##
=======================================
  Coverage   93.43%   93.43%           
=======================================
  Files          28       28           
  Lines       27346    27346           
  Branches     1253     1253           
=======================================
  Hits        25550    25550           
  Misses       1762     1762           
  Partials       34       34           
Flag Coverage Δ
c-tests 92.26% <ø> (ø)
lwt-tests 89.05% <ø> (ø)
python-c-tests 71.39% <100.00%> (ø)
python-tests 98.95% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/tskit/tables.py 98.96% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ada9596...676f0a6. Read the comment docs.

jeromekelleher pushed a commit to jeromekelleher/tskit that referenced this pull request Jul 25, 2022
Closes tskit-dev#2439

Removes the caching layer for metadata schemas as it was causing
consistency problems and wasn't doing anything in the most common case
anyway (accessing tables.individuals, e.g.)
@jeromekelleher jeromekelleher mentioned this pull request Jul 25, 2022
jeromekelleher pushed a commit to jeromekelleher/tskit that referenced this pull request Jul 25, 2022
Closes tskit-dev#2439

Removes the caching layer for metadata schemas as it was causing
consistency problems and wasn't doing anything in the most common case
anyway (accessing tables.individuals, e.g.)

@benjeffery benjeffery left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer - thanks for spotting this solution.

Also simplify the class structure of Tables

Closes tskit-dev#2428
@jeromekelleher
jeromekelleher force-pushed the fix-table-circular-refs branch from 06ce8cb to 676f0a6 Compare July 27, 2022 13:39
@mergify
mergify Bot merged commit 8e87bfd into tskit-dev:main Jul 27, 2022
jeromekelleher pushed a commit to jeromekelleher/tskit that referenced this pull request Jul 27, 2022
Closes tskit-dev#2439

Removes the caching layer for metadata schemas as it was causing
consistency problems and wasn't doing anything in the most common case
anyway (accessing tables.individuals, e.g.)
jeromekelleher pushed a commit to jeromekelleher/tskit that referenced this pull request Jul 27, 2022
Closes tskit-dev#2439

Removes the caching layer for metadata schemas as it was causing
consistency problems and wasn't doing anything in the most common case
anyway (accessing tables.individuals, e.g.)
jeromekelleher pushed a commit to jeromekelleher/tskit that referenced this pull request Jul 27, 2022
Closes tskit-dev#2439

Removes the caching layer for metadata schemas as it was causing
consistency problems and wasn't doing anything in the most common case
anyway (accessing tables.individuals, e.g.)
jeromekelleher pushed a commit to jeromekelleher/tskit that referenced this pull request Jul 28, 2022
Closes tskit-dev#2439

Removes the caching layer for metadata schemas as it was causing
consistency problems and wasn't doing anything in the most common case
anyway (accessing tables.individuals, e.g.)
mergify Bot pushed a commit that referenced this pull request Jul 28, 2022
Closes #2439

Removes the caching layer for metadata schemas as it was causing
consistency problems and wasn't doing anything in the most common case
anyway (accessing tables.individuals, e.g.)
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.

Referring to tables in TableCollection leaks memory

2 participants