Commit 4272eb4
authored
Always zero-copy from VortexBuffer to ArrowBuffer (#1348)
Previously we converted to ArrowBuffer via a Vec<u8>, which was only
zero-copy if we had exclusive ownership of the underlying bytes.
This uses a hard-to-find conversion from `bytes::Bytes` to
`arrow_buffer::Bytes` which guarantees zero-copy.1 parent dbbfd56 commit 4272eb4
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
0 commit comments