85c35064ec1786055cbc741a126fa581493acbe1,distributed/protocol/utils.py,,pack_frames_prelude,#Any#,93
Before Change
lengths = [struct.pack("Q", len(frames))] + [
struct.pack("Q", nbytes(frame)) for frame in frames
]
return b"".join(lengths)
def pack_frames(frames):
Pack frames into a byte-like object
After Change
def pack_frames_prelude(frames):
nframes = len(frames)
nbytes_frames = map(nbytes, frames)
return struct.pack(f"Q{nframes}Q", nframes, *nbytes_frames)
def pack_frames(frames):
Pack frames into a byte-like object
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dask/distributed
Commit Name: 85c35064ec1786055cbc741a126fa581493acbe1
Time: 2020-07-20
Author: jakirkham@gmail.com
File Name: distributed/protocol/utils.py
Class Name:
Method Name: pack_frames_prelude
Project Name: ray-project/ray
Commit Name: 91b9928ad571adaefe5e86b1281f17e130729a8b
Time: 2021-03-20
Author: simon.mo@hey.com
File Name: python/ray/serve/backend_worker.py
Class Name: RayServeReplica
Method Name: ensure_serializable_response
Project Name: dask/distributed
Commit Name: ddc6377b76f957ef4a3a607f1dc2cf2ba772abc7
Time: 2020-05-21
Author: jakirkham@gmail.com
File Name: distributed/protocol/serialize.py
Class Name:
Method Name: pickle_loads