mirror of
https://github.com/wassname/ray.git
synced 2026-07-29 11:26:04 +08:00
Plasma Optimizations (#190)
* bypass python when storing objects into the object store * clang-format * Bug fixes. * fix include paths * Fixes. * fix bug * clang-format * fix * fix release after disconnect
This commit is contained in:
committed by
Robert Nishihara
parent
0320902787
commit
ab3448a9b4
@@ -111,7 +111,7 @@ class SerializationTests(unittest.TestCase):
|
||||
def testBuffer(self):
|
||||
for (i, obj) in enumerate(TEST_OBJECTS):
|
||||
schema, size, batch = numbuf.serialize_list([obj])
|
||||
size = size + 4096 # INITIAL_METADATA_SIZE in arrow
|
||||
size = size + 4096 # INITIAL_METADATA_SIZE in arrow.
|
||||
buff = np.zeros(size, dtype="uint8")
|
||||
metadata_offset = numbuf.write_to_buffer(batch, memoryview(buff))
|
||||
array = numbuf.read_from_buffer(memoryview(buff), memoryview(schema), metadata_offset)
|
||||
|
||||
Reference in New Issue
Block a user