85c35064ec1786055cbc741a126fa581493acbe1,distributed/protocol/utils.py,,pack_frames_prelude,#Any#,93
Before Change
def pack_frames_prelude(frames):
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: 6
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: dask/distributed
Commit Name: 383ea0326ae103b5d5e0b62ed9c3cb18510c5b9e
Time: 2021-02-17
Author: jakirkham@gmail.com
File Name: distributed/comm/tcp.py
Class Name: TCP
Method Name: write
Project Name: keras-team/keras
Commit Name: 08014eea360fd8d66b7baab19cdb9335f52c167b
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: repeat