MCPcopy
hub / github.com/ray-project/ray / msgpack_serialize

Function msgpack_serialize

python/ray/serve/_private/utils.py:253–257  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

251
252
253def msgpack_serialize(obj):
254 ctx = ray._private.worker.global_worker.get_serialization_context()
255 buffer = ctx.serialize(obj)
256 serialized = buffer.to_bytes()
257 return serialized
258
259
260def msgpack_deserialize(data):

Callers 3

startMethod · 0.90
_format_user_configMethod · 0.90
test_serializeFunction · 0.90

Calls 3

to_bytesMethod · 0.80
serializeMethod · 0.65

Tested by 1

test_serializeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…