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
87d0b454
Kaydet (Commit)
87d0b454
authored
Şub 03, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15381: Optimized io.BytesIO to make less allocations and copyings.
üst
83e80279
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
3.5.rst
Doc/whatsnew/3.5.rst
+3
-0
test_memoryio.py
Lib/test/test_memoryio.py
+2
-3
NEWS
Misc/NEWS
+2
-0
bytesio.c
Modules/_io/bytesio.c
+0
-0
No files found.
Doc/whatsnew/3.5.rst
Dosyayı görüntüle @
87d0b454
...
...
@@ -362,6 +362,9 @@ The following performance enhancements have been added:
The speed up can range from 3x to 15x.
(:issue:`21486`, :issue:`21487`, :issue:`20826`)
* Many operations on :class:`io.BytesIO` are now 50% to 100% faster.
(Contributed by Serhiy Storchaka in :issue:`15381`.)
Build and C API Changes
=======================
...
...
Lib/test/test_memoryio.py
Dosyayı görüntüle @
87d0b454
...
...
@@ -718,12 +718,11 @@ class CBytesIOTest(PyBytesIOTest):
@support.cpython_only
def
test_sizeof
(
self
):
basesize
=
support
.
calcobjsize
(
'P2n
N2PnP
'
)
basesize
=
support
.
calcobjsize
(
'P2n
2Pn
'
)
check
=
self
.
check_sizeof
self
.
assertEqual
(
object
.
__sizeof__
(
io
.
BytesIO
()),
basesize
)
check
(
io
.
BytesIO
(),
basesize
)
check
(
io
.
BytesIO
(
b
'a'
),
basesize
+
1
)
check
(
io
.
BytesIO
(
b
'a'
*
1000
),
basesize
+
1000
)
check
(
io
.
BytesIO
(
b
'a'
*
1000
),
basesize
+
sys
.
getsizeof
(
b
'a'
*
1000
))
# Various tests of copy-on-write behaviour for BytesIO.
...
...
Misc/NEWS
Dosyayı görüntüle @
87d0b454
...
...
@@ -232,6 +232,8 @@ Core and Builtins
Library
-------
- Issue #15381: Optimized io.BytesIO to make less allocations and copyings.
- Issue #22818: Splitting on a pattern that could match an empty string now
raises a warning. Patterns that can only match empty strings are now
rejected.
...
...
Modules/_io/bytesio.c
Dosyayı görüntüle @
87d0b454
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