File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ picows Release History
55 :depth: 1
66 :local:
77
8+ 1.2.1 (2024-09-11)
9+ ------------------
10+
11+ * Optimization: Internal memory buffers were calling PyMem_Realloc too often
812
9131.2.0 (2024-09-05)
1014------------------
Original file line number Diff line number Diff line change 2525 'PICOWS_DEBUG_LL'
2626]
2727
28- __version__ = "1.2.0 "
28+ __version__ = "1.2.1 "
2929__author__ = "Taras Kozlov"
Original file line number Diff line number Diff line change @@ -778,11 +778,15 @@ cdef class WSProtocol:
778778 self ._process_new_data()
779779
780780 # Benchmark and profiler showed that buffered protocol is actually slower
781- # then normal. There are additional costs of 2 python calls
781+ # than normal. There are additional costs of 2 python calls
782782 # (get_buffer, buffer_updated) comparing to a single data_received.
783783 # Also extra costs are related to creating memoryview and getting buffer
784- # out of it
785-
784+ # out of it.
785+ #
786+ # Uncommenting the following code will make uvloop to think that WSProtocol
787+ # implements BufferedProtocol. uvloop will use get_buffer/buffer_updated
788+ # instead of data_received.
789+ #
786790 # def get_buffer(self, Py_ssize_t size_hint):
787791 # cdef Py_ssize_t sz = size_hint + 1024
788792 # if self._buffer.size - self._f_new_data_start_pos < sz:
You can’t perform that action at this time.
0 commit comments