You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2019/09/25 10:16:00 UTC
[jira] [Resolved] (ARROW-6667) [Python] Avoid Reference Cycles in
pyarrow.parquet
[ https://issues.apache.org/jira/browse/ARROW-6667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-6667.
-----------------------------------
Resolution: Fixed
Issue resolved by pull request 5476
[https://github.com/apache/arrow/pull/5476]
> [Python] Avoid Reference Cycles in pyarrow.parquet
> --------------------------------------------------
>
> Key: ARROW-6667
> URL: https://issues.apache.org/jira/browse/ARROW-6667
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Aaron Opfer
> Priority: Minor
> Labels: pull-request-available
> Fix For: 0.15.0
>
> Attachments: cycle1_build_nested_path.PNG, cycle2_open_dataset.PNG
>
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> Reference cycles appear in two places inside pyarrow.parquet which causes these objects to have much longer lifetimes than necessary:
>
> {{_build_nested_path}} has a reference cycle because the closured function refers to the parent cell which also refers to the closured function again (objgraph shown in attachment)
> {{open_dataset_file}} is partialed with self inside the {{ParquetFile}} class (objgraph shown in attachment).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)