Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
1b7c11ff
Unverified
Kaydet (Commit)
1b7c11ff
authored
Ara 18, 2017
tarafından
Yury Selivanov
Kaydeden (comit)
GitHub
Ara 18, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32348: Optimize asyncio.Future schedule/add/remove callback. (#4907)
üst
4c72bc4a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
177 additions
and
27 deletions
+177
-27
test_futures.py
Lib/test/test_asyncio/test_futures.py
+138
-21
test_tasks.py
Lib/test/test_asyncio/test_tasks.py
+37
-6
2017-12-16-18-50-57.bpo-32348.5j__he.rst
...S.d/next/Library/2017-12-16-18-50-57.bpo-32348.5j__he.rst
+2
-0
_asynciomodule.c
Modules/_asynciomodule.c
+0
-0
No files found.
Lib/test/test_asyncio/test_futures.py
Dosyayı görüntüle @
1b7c11ff
...
@@ -145,37 +145,60 @@ class BaseFutureTests:
...
@@ -145,37 +145,60 @@ class BaseFutureTests:
self
.
assertRaises
(
TypeError
,
self
.
_new_future
,
42
)
self
.
assertRaises
(
TypeError
,
self
.
_new_future
,
42
)
def
test_uninitialized
(
self
):
def
test_uninitialized
(
self
):
# Test that C Future doesn't crash when Future.__init__()
# call was skipped.
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
self
.
assertRaises
(
asyncio
.
InvalidStateError
,
fut
.
result
)
self
.
assertRaises
(
asyncio
.
InvalidStateError
,
fut
.
result
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
self
.
assertRaises
(
asyncio
.
InvalidStateError
,
fut
.
exception
)
self
.
assertRaises
(
asyncio
.
InvalidStateError
,
fut
.
exception
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
fut
.
set_result
(
None
)
fut
.
set_result
(
None
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
fut
.
set_exception
(
Exception
)
fut
.
set_exception
(
Exception
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
fut
.
cancel
()
fut
.
cancel
()
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
fut
.
add_done_callback
(
lambda
f
:
None
)
fut
.
add_done_callback
(
lambda
f
:
None
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
fut
.
remove_done_callback
(
lambda
f
:
None
)
fut
.
remove_done_callback
(
lambda
f
:
None
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
with
self
.
assertRaises
((
RuntimeError
,
AttributeError
)):
fut
.
_schedule_callbacks
()
fut
.
_schedule_callbacks
()
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
try
:
try
:
repr
(
fut
)
repr
(
fut
)
except
AttributeError
:
except
(
RuntimeError
,
AttributeError
):
pass
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
try
:
fut
.
__await__
()
except
RuntimeError
:
pass
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
try
:
iter
(
fut
)
except
RuntimeError
:
pass
pass
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
=
self
.
cls
.
__new__
(
self
.
cls
,
loop
=
self
.
loop
)
fut
.
cancelled
()
self
.
assertFalse
(
fut
.
cancelled
())
fut
.
done
()
self
.
assertFalse
(
fut
.
done
())
iter
(
fut
)
def
test_cancel
(
self
):
def
test_cancel
(
self
):
f
=
self
.
_new_future
(
loop
=
self
.
loop
)
f
=
self
.
_new_future
(
loop
=
self
.
loop
)
...
@@ -246,30 +269,32 @@ class BaseFutureTests:
...
@@ -246,30 +269,32 @@ class BaseFutureTests:
self
.
loop
.
set_debug
(
True
)
self
.
loop
.
set_debug
(
True
)
f_pending_debug
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_pending_debug
=
self
.
_new_future
(
loop
=
self
.
loop
)
frame
=
f_pending_debug
.
_source_traceback
[
-
1
]
frame
=
f_pending_debug
.
_source_traceback
[
-
1
]
self
.
assertEqual
(
repr
(
f_pending_debug
),
self
.
assertEqual
(
'<Future pending created at
%
s:
%
s>'
repr
(
f_pending_debug
),
%
(
frame
[
0
],
frame
[
1
])
)
f
'<{self.cls.__name__} pending created at {frame[0]}:{frame[1]}>'
)
f_pending_debug
.
cancel
()
f_pending_debug
.
cancel
()
self
.
loop
.
set_debug
(
False
)
self
.
loop
.
set_debug
(
False
)
f_pending
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_pending
=
self
.
_new_future
(
loop
=
self
.
loop
)
self
.
assertEqual
(
repr
(
f_pending
),
'<Future
pending>'
)
self
.
assertEqual
(
repr
(
f_pending
),
f
'<{self.cls.__name__}
pending>'
)
f_pending
.
cancel
()
f_pending
.
cancel
()
f_cancelled
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_cancelled
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_cancelled
.
cancel
()
f_cancelled
.
cancel
()
self
.
assertEqual
(
repr
(
f_cancelled
),
'<Future
cancelled>'
)
self
.
assertEqual
(
repr
(
f_cancelled
),
f
'<{self.cls.__name__}
cancelled>'
)
f_result
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_result
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_result
.
set_result
(
4
)
f_result
.
set_result
(
4
)
self
.
assertEqual
(
repr
(
f_result
),
'<Future finished result=4>'
)
self
.
assertEqual
(
repr
(
f_result
),
f
'<{self.cls.__name__} finished result=4>'
)
self
.
assertEqual
(
f_result
.
result
(),
4
)
self
.
assertEqual
(
f_result
.
result
(),
4
)
exc
=
RuntimeError
()
exc
=
RuntimeError
()
f_exception
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_exception
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_exception
.
set_exception
(
exc
)
f_exception
.
set_exception
(
exc
)
self
.
assertEqual
(
repr
(
f_exception
),
self
.
assertEqual
(
'<Future finished exception=RuntimeError()>'
)
repr
(
f_exception
),
f
'<{self.cls.__name__} finished exception=RuntimeError()>'
)
self
.
assertIs
(
f_exception
.
exception
(),
exc
)
self
.
assertIs
(
f_exception
.
exception
(),
exc
)
def
func_repr
(
func
):
def
func_repr
(
func
):
...
@@ -280,11 +305,12 @@ class BaseFutureTests:
...
@@ -280,11 +305,12 @@ class BaseFutureTests:
f_one_callbacks
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_one_callbacks
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_one_callbacks
.
add_done_callback
(
_fakefunc
)
f_one_callbacks
.
add_done_callback
(
_fakefunc
)
fake_repr
=
func_repr
(
_fakefunc
)
fake_repr
=
func_repr
(
_fakefunc
)
self
.
assertRegex
(
repr
(
f_one_callbacks
),
self
.
assertRegex
(
r'<Future pending cb=\[
%
s\]>'
%
fake_repr
)
repr
(
f_one_callbacks
),
r'<'
+
self
.
cls
.
__name__
+
r' pending cb=\[
%
s\]>'
%
fake_repr
)
f_one_callbacks
.
cancel
()
f_one_callbacks
.
cancel
()
self
.
assertEqual
(
repr
(
f_one_callbacks
),
self
.
assertEqual
(
repr
(
f_one_callbacks
),
'<Future
cancelled>'
)
f
'<{self.cls.__name__}
cancelled>'
)
f_two_callbacks
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_two_callbacks
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_two_callbacks
.
add_done_callback
(
first_cb
)
f_two_callbacks
.
add_done_callback
(
first_cb
)
...
@@ -292,7 +318,7 @@ class BaseFutureTests:
...
@@ -292,7 +318,7 @@ class BaseFutureTests:
first_repr
=
func_repr
(
first_cb
)
first_repr
=
func_repr
(
first_cb
)
last_repr
=
func_repr
(
last_cb
)
last_repr
=
func_repr
(
last_cb
)
self
.
assertRegex
(
repr
(
f_two_callbacks
),
self
.
assertRegex
(
repr
(
f_two_callbacks
),
r'<
Future
pending cb=\[
%
s,
%
s\]>'
r'<
'
+
self
.
cls
.
__name__
+
r'
pending cb=\[
%
s,
%
s\]>'
%
(
first_repr
,
last_repr
))
%
(
first_repr
,
last_repr
))
f_many_callbacks
=
self
.
_new_future
(
loop
=
self
.
loop
)
f_many_callbacks
=
self
.
_new_future
(
loop
=
self
.
loop
)
...
@@ -301,11 +327,12 @@ class BaseFutureTests:
...
@@ -301,11 +327,12 @@ class BaseFutureTests:
f_many_callbacks
.
add_done_callback
(
_fakefunc
)
f_many_callbacks
.
add_done_callback
(
_fakefunc
)
f_many_callbacks
.
add_done_callback
(
last_cb
)
f_many_callbacks
.
add_done_callback
(
last_cb
)
cb_regex
=
r'
%
s, <8 more>,
%
s'
%
(
first_repr
,
last_repr
)
cb_regex
=
r'
%
s, <8 more>,
%
s'
%
(
first_repr
,
last_repr
)
self
.
assertRegex
(
repr
(
f_many_callbacks
),
self
.
assertRegex
(
r'<Future pending cb=\[
%
s\]>'
%
cb_regex
)
repr
(
f_many_callbacks
),
r'<'
+
self
.
cls
.
__name__
+
r' pending cb=\[
%
s\]>'
%
cb_regex
)
f_many_callbacks
.
cancel
()
f_many_callbacks
.
cancel
()
self
.
assertEqual
(
repr
(
f_many_callbacks
),
self
.
assertEqual
(
repr
(
f_many_callbacks
),
'<Future
cancelled>'
)
f
'<{self.cls.__name__}
cancelled>'
)
def
test_copy_state
(
self
):
def
test_copy_state
(
self
):
from
asyncio.futures
import
_copy_future_state
from
asyncio.futures
import
_copy_future_state
...
@@ -475,7 +502,7 @@ class BaseFutureTests:
...
@@ -475,7 +502,7 @@ class BaseFutureTests:
support
.
gc_collect
()
support
.
gc_collect
()
if
sys
.
version_info
>=
(
3
,
4
):
if
sys
.
version_info
>=
(
3
,
4
):
regex
=
r'^Future
exception was never retrieved\n'
regex
=
f
'^{self.cls.__name__}
exception was never retrieved
\n
'
exc_info
=
(
type
(
exc
),
exc
,
exc
.
__traceback__
)
exc_info
=
(
type
(
exc
),
exc
,
exc
.
__traceback__
)
m_log
.
error
.
assert_called_once_with
(
mock
.
ANY
,
exc_info
=
exc_info
)
m_log
.
error
.
assert_called_once_with
(
mock
.
ANY
,
exc_info
=
exc_info
)
else
:
else
:
...
@@ -531,7 +558,16 @@ class BaseFutureTests:
...
@@ -531,7 +558,16 @@ class BaseFutureTests:
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
'requires the C _asyncio module'
)
'requires the C _asyncio module'
)
class
CFutureTests
(
BaseFutureTests
,
test_utils
.
TestCase
):
class
CFutureTests
(
BaseFutureTests
,
test_utils
.
TestCase
):
cls
=
getattr
(
futures
,
'_CFuture'
)
cls
=
futures
.
_CFuture
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
'requires the C _asyncio module'
)
class
CSubFutureTests
(
BaseFutureTests
,
test_utils
.
TestCase
):
class
CSubFuture
(
futures
.
_CFuture
):
pass
cls
=
CSubFuture
class
PyFutureTests
(
BaseFutureTests
,
test_utils
.
TestCase
):
class
PyFutureTests
(
BaseFutureTests
,
test_utils
.
TestCase
):
...
@@ -556,6 +592,76 @@ class BaseFutureDoneCallbackTests():
...
@@ -556,6 +592,76 @@ class BaseFutureDoneCallbackTests():
def
_new_future
(
self
):
def
_new_future
(
self
):
raise
NotImplementedError
raise
NotImplementedError
def
test_callbacks_remove_first_callback
(
self
):
bag
=
[]
f
=
self
.
_new_future
()
cb1
=
self
.
_make_callback
(
bag
,
42
)
cb2
=
self
.
_make_callback
(
bag
,
17
)
cb3
=
self
.
_make_callback
(
bag
,
100
)
f
.
add_done_callback
(
cb1
)
f
.
add_done_callback
(
cb2
)
f
.
add_done_callback
(
cb3
)
f
.
remove_done_callback
(
cb1
)
f
.
remove_done_callback
(
cb1
)
self
.
assertEqual
(
bag
,
[])
f
.
set_result
(
'foo'
)
self
.
run_briefly
()
self
.
assertEqual
(
bag
,
[
17
,
100
])
self
.
assertEqual
(
f
.
result
(),
'foo'
)
def
test_callbacks_remove_first_and_second_callback
(
self
):
bag
=
[]
f
=
self
.
_new_future
()
cb1
=
self
.
_make_callback
(
bag
,
42
)
cb2
=
self
.
_make_callback
(
bag
,
17
)
cb3
=
self
.
_make_callback
(
bag
,
100
)
f
.
add_done_callback
(
cb1
)
f
.
add_done_callback
(
cb2
)
f
.
add_done_callback
(
cb3
)
f
.
remove_done_callback
(
cb1
)
f
.
remove_done_callback
(
cb2
)
f
.
remove_done_callback
(
cb1
)
self
.
assertEqual
(
bag
,
[])
f
.
set_result
(
'foo'
)
self
.
run_briefly
()
self
.
assertEqual
(
bag
,
[
100
])
self
.
assertEqual
(
f
.
result
(),
'foo'
)
def
test_callbacks_remove_third_callback
(
self
):
bag
=
[]
f
=
self
.
_new_future
()
cb1
=
self
.
_make_callback
(
bag
,
42
)
cb2
=
self
.
_make_callback
(
bag
,
17
)
cb3
=
self
.
_make_callback
(
bag
,
100
)
f
.
add_done_callback
(
cb1
)
f
.
add_done_callback
(
cb2
)
f
.
add_done_callback
(
cb3
)
f
.
remove_done_callback
(
cb3
)
f
.
remove_done_callback
(
cb3
)
self
.
assertEqual
(
bag
,
[])
f
.
set_result
(
'foo'
)
self
.
run_briefly
()
self
.
assertEqual
(
bag
,
[
42
,
17
])
self
.
assertEqual
(
f
.
result
(),
'foo'
)
def
test_callbacks_invoked_on_set_result
(
self
):
def
test_callbacks_invoked_on_set_result
(
self
):
bag
=
[]
bag
=
[]
f
=
self
.
_new_future
()
f
=
self
.
_new_future
()
...
@@ -678,6 +784,17 @@ class CFutureDoneCallbackTests(BaseFutureDoneCallbackTests,
...
@@ -678,6 +784,17 @@ class CFutureDoneCallbackTests(BaseFutureDoneCallbackTests,
return
futures
.
_CFuture
(
loop
=
self
.
loop
)
return
futures
.
_CFuture
(
loop
=
self
.
loop
)
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
'requires the C _asyncio module'
)
class
CSubFutureDoneCallbackTests
(
BaseFutureDoneCallbackTests
,
test_utils
.
TestCase
):
def
_new_future
(
self
):
class
CSubFuture
(
futures
.
_CFuture
):
pass
return
CSubFuture
(
loop
=
self
.
loop
)
class
PyFutureDoneCallbackTests
(
BaseFutureDoneCallbackTests
,
class
PyFutureDoneCallbackTests
(
BaseFutureDoneCallbackTests
,
test_utils
.
TestCase
):
test_utils
.
TestCase
):
...
...
Lib/test/test_asyncio/test_tasks.py
Dosyayı görüntüle @
1b7c11ff
...
@@ -2187,23 +2187,51 @@ def add_subclass_tests(cls):
...
@@ -2187,23 +2187,51 @@ def add_subclass_tests(cls):
return
cls
return
cls
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
)
and
hasattr
(
tasks
,
'_CTask'
),
'requires the C _asyncio module'
)
'requires the C _asyncio module'
)
class
CTask_CFuture_Tests
(
BaseTaskTests
,
test_utils
.
TestCase
):
class
CTask_CFuture_Tests
(
BaseTaskTests
,
test_utils
.
TestCase
):
Task
=
getattr
(
tasks
,
'_CTask'
,
None
)
Task
=
getattr
(
tasks
,
'_CTask'
,
None
)
Future
=
getattr
(
futures
,
'_CFuture'
,
None
)
Future
=
getattr
(
futures
,
'_CFuture'
,
None
)
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
)
and
hasattr
(
tasks
,
'_CTask'
),
'requires the C _asyncio module'
)
'requires the C _asyncio module'
)
@add_subclass_tests
@add_subclass_tests
class
CTask_CFuture_SubclassTests
(
BaseTaskTests
,
test_utils
.
TestCase
):
class
CTask_CFuture_SubclassTests
(
BaseTaskTests
,
test_utils
.
TestCase
):
Task
=
getattr
(
tasks
,
'_CTask'
,
None
)
Future
=
getattr
(
futures
,
'_CFuture'
,
None
)
class
Task
(
tasks
.
_CTask
):
pass
class
Future
(
futures
.
_CFuture
):
pass
@unittest.skipUnless
(
hasattr
(
tasks
,
'_CTask'
),
'requires the C _asyncio module'
)
@add_subclass_tests
class
CTaskSubclass_PyFuture_Tests
(
BaseTaskTests
,
test_utils
.
TestCase
):
class
Task
(
tasks
.
_CTask
):
pass
Future
=
futures
.
_PyFuture
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
),
'requires the C _asyncio module'
)
'requires the C _asyncio module'
)
@add_subclass_tests
class
PyTask_CFutureSubclass_Tests
(
BaseTaskTests
,
test_utils
.
TestCase
):
class
Future
(
futures
.
_CFuture
):
pass
Task
=
tasks
.
_PyTask
@unittest.skipUnless
(
hasattr
(
tasks
,
'_CTask'
),
'requires the C _asyncio module'
)
class
CTask_PyFuture_Tests
(
BaseTaskTests
,
test_utils
.
TestCase
):
class
CTask_PyFuture_Tests
(
BaseTaskTests
,
test_utils
.
TestCase
):
Task
=
getattr
(
tasks
,
'_CTask'
,
None
)
Task
=
getattr
(
tasks
,
'_CTask'
,
None
)
Future
=
futures
.
_PyFuture
Future
=
futures
.
_PyFuture
...
@@ -2223,8 +2251,11 @@ class PyTask_PyFuture_Tests(BaseTaskTests, test_utils.TestCase):
...
@@ -2223,8 +2251,11 @@ class PyTask_PyFuture_Tests(BaseTaskTests, test_utils.TestCase):
@add_subclass_tests
@add_subclass_tests
class
PyTask_PyFuture_SubclassTests
(
BaseTaskTests
,
test_utils
.
TestCase
):
class
PyTask_PyFuture_SubclassTests
(
BaseTaskTests
,
test_utils
.
TestCase
):
Task
=
tasks
.
_PyTask
class
Task
(
tasks
.
_PyTask
):
Future
=
futures
.
_PyFuture
pass
class
Future
(
futures
.
_PyFuture
):
pass
class
BaseTaskIntrospectionTests
:
class
BaseTaskIntrospectionTests
:
...
...
Misc/NEWS.d/next/Library/2017-12-16-18-50-57.bpo-32348.5j__he.rst
0 → 100644
Dosyayı görüntüle @
1b7c11ff
Optimize asyncio.Future schedule/add/remove callback. The optimization
shows 3-6% performance improvements of async/await code.
Modules/_asynciomodule.c
Dosyayı görüntüle @
1b7c11ff
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment