You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Andy Grove (JIRA)" <ji...@apache.org> on 2018/03/31 17:59:00 UTC

[jira] [Created] (ARROW-2373) [Rust] Investigate alternate ways to acheive byte-aligned memory

Andy Grove created ARROW-2373:
---------------------------------

             Summary: [Rust] Investigate alternate ways to acheive byte-aligned memory
                 Key: ARROW-2373
                 URL: https://issues.apache.org/jira/browse/ARROW-2373
             Project: Apache Arrow
          Issue Type: New Feature
          Components: Rust
            Reporter: Andy Grove


The current Rust implementation of Buffer<T> relies on libc and unsafe code to allocate byte-aligned buffers.

It would be nice to find a safer way to do this.

Rust 1.25 added support for byte-aligned structs, but that doesn't help.

I have started a discussion in the Rust develop forum about adding support for byte-aligned Vec ([https://internals.rust-lang.org/t/byte-aligned-vec/7200).]

RawVec has been suggested too, but that required rust nightly, which doesn't seem great to me.



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