Skip to content

Commit 43f8d7e

Browse files
author
taras
committed
Bump version
1 parent 127ef72 commit 43f8d7e

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

913
1.2.0 (2024-09-05)
1014
------------------

picows/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
'PICOWS_DEBUG_LL'
2626
]
2727

28-
__version__ = "1.2.0"
28+
__version__ = "1.2.1"
2929
__author__ = "Taras Kozlov"

picows/picows.pyx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)