bpo-36785: PEP 574 What's New entry (#13931) · python/cpython@c879ff2

@@ -54,7 +54,6 @@ For full details, see the :ref:`changelog <changelog>`.

54545555

Some notable items not yet covered here:

565657-

* :pep:`574` - Pickle protocol 5 with out-of-band data buffer support

5857

* :pep:`578` - Runtime audit hooks for potentially sensitive operations

5958

* ``python -m asyncio`` runs a natively async REPL

6059

* ...

@@ -261,6 +260,23 @@ See :pep:`590` for a full description.

261260

(Contributed by Jeroen Demeyer and Mark Shannon in :issue:`36974`.)

262261263262263+

Pickle protocol 5 with out-of-band data buffers

264+

-----------------------------------------------

265+266+

When :mod:`pickle` is used to transfer large data between Python processes

267+

in order to take advantage of multi-core or multi-machine processing,

268+

it is important to optimize the transfer by reducing memory copies, and

269+

possibly by applying custom techniques such as data-dependent compression.

270+271+

The :mod:`pickle` protocol 5 introduces support for out-of-band buffers

272+

where :pep:`3118`-compatible data can be transmitted separately from the

273+

main pickle stream, at the discretion of the communication layer.

274+275+

See :pep:`574` for a full description.

276+277+

(Contributed by Antoine Pitrou in :issue:`36785`.)

278+279+264280

Other Language Changes

265281

======================

266282