OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-2701) [C++] Make MemoryMappedFile resizable


Dimitri Vorona created ARROW-2701:
-------------------------------------

             Summary: [C++] Make MemoryMappedFile resizable
                 Key: ARROW-2701
                 URL: https://issues.apache.org/jira/browse/ARROW-2701
             Project: Apache Arrow
          Issue Type: New Feature
          Components: C++
    Affects Versions: 0.9.0
            Reporter: Dimitri Vorona


Hi,

I don't see any reason for the MemoryMappedFile not to be resizable, e.g. like it is in Python stdlib. This patch changes the base class of MemoryMappedFile to ResizableBuffer and implements mmap resizing similar to [mmap.resize|https://github.com/python/cpython/blob/415bc46a78e785f357c8960ae70f18a6b6cccbb6/Modules/mmapmodule.c#L454] from python stdlib.

If the change is ok, we should probably change the comment [here|https://github.com/apache/arrow/blob/master/python/pyarrow/tests/test_io.py#L577], too.

Cheers,

Dimitri.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)