Skip to content

Commit ad38f06

Browse files
committed
perf(FrameBuffer.__next__()): change self.data in place
1 parent 4a070e8 commit ad38f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/h2/frame_buffer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __next__(self) -> Frame:
148148

149149
# At this point, as we know we'll use or discard the entire frame, we
150150
# can update the data.
151-
self.data = self.data[9+length:]
151+
del self.data[:9+length] # (self.data = self.data[9+length:])
152152

153153
# Pass the frame through the header buffer.
154154
new_frame = self._update_header_buffer(f)

0 commit comments

Comments
 (0)