Skip to content

ARROW-11049: [Python] Expose alternate memory pools - #9161

Closed
pitrou wants to merge 2 commits into
apache:masterfrom
pitrou:ARROW-11049-py-memory-pools
Closed

pitrou wants to merge 2 commits into
apache:masterfrom
pitrou:ARROW-11049-py-memory-pools

Conversation

@pitrou

@pitrou pitrou commented Jan 11, 2021

Copy link
Copy Markdown
Member

No description provided.

Comment thread python/pyarrow/memory.pxi Resolved
@github-actions

Copy link
Copy Markdown

Comment thread python/pyarrow/tests/test_memory.py Outdated

@kszucs kszucs Jan 11, 2021 •

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.

Will this case fail if we build a wheel without the specific optional allocator enabled (based on the should have flag definitions)?

If yes we may want to find a better way to retrieve the built allocators in a follow-up.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unless the case happens, I don't think we should worry.

@jorisvandenbossche

Copy link
Copy Markdown
Member

Looks good, no comments on the Python code. Maybe not critical for this PR, but I have some suggestions (or questions) for expanded docs:

  • I would add some more text to the python/memory.rst. There is now "PyArrow uses a default built-in memory pool, but depending on how Arrow was built, there may be additional memory pools to choose from."
    -> Could mention which different options are possible (system, jemalloc, mimalloc), referencing the API page with the overview of the related functions
    -> Is there a way to see interactively which one is being used?
    -> Can you switch the pool being used? (eg do pa.set_memory_pool(pa.mimalloc_memory_pool()) ?

@pitrou
pitrou force-pushed the ARROW-11049-py-memory-pools branch from 6b68815 to c94c01b Compare January 12, 2021 13:47
@pitrou

pitrou commented Jan 12, 2021

Copy link
Copy Markdown
Member Author

Ok, I've improved the docs a bit. Will merge if green.

@pitrou pitrou closed this in a91040f Jan 12, 2021
@pitrou
pitrou deleted the ARROW-11049-py-memory-pools branch January 12, 2021 15:57
@jorisvandenbossche

Copy link
Copy Markdown
Member

Thanks for the doc update!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants