383ea0326ae103b5d5e0b62ed9c3cb18510c5b9e,distributed/comm/tcp.py,TCP,write,#TCP#Any#Any#Any#,229
Before Change
try:
nframes = len(frames)
lengths = [nbytes(frame) for frame in frames]
length_bytes = struct.pack(f"Q{nframes}Q", nframes, *lengths)
frames = [length_bytes, *frames]
After Change
)
frames_nbytes = sum(map(nbytes, frames))
header = pack_frames_prelude(frames)
header = struct.pack("Q", nbytes(header) + frames_nbytes) + header
frames = [header, *frames]
frames_nbytes += nbytes(header)
if frames_nbytes < 2 ** 17: // 128kiB
// small enough, send in one go
frames = [b"".join(frames)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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: dask/distributed
Commit Name: 48648fb8a49779330d09dafbc554798f02ba21af
Time: 2020-11-20
Author: jakirkham@gmail.com
File Name: distributed/comm/tcp.py
Class Name: TCP
Method Name: write
Project Name: NTMC-Community/MatchZoo
Commit Name: 53a93d8af5d041f6c5dfdef2fb763f8419e3023d
Time: 2019-01-19
Author: i@uduse.com
File Name: matchzoo/datasets/snli/load_data.py
Class Name:
Method Name: load_data