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
cc15b42e
Kaydet (Commit)
cc15b42e
authored
Ara 16, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change comment about MINSIZE -- 10 is optimal for Python.
üst
81a6fe9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
listobject.c
Objects/listobject.c
+6
-3
No files found.
Objects/listobject.c
Dosyayı görüntüle @
cc15b42e
...
@@ -630,9 +630,12 @@ insertionsort(array, size, compare)
...
@@ -630,9 +630,12 @@ insertionsort(array, size, compare)
}
}
/* MINSIZE is the smallest array we care to partition; smaller arrays
/* MINSIZE is the smallest array we care to partition; smaller arrays
are sorted using a straight insertion sort (above). You may want
are sorted using a straight insertion sort (above). It must be at
to play with this to tune it for your system. It must be at least
least 2 for the quicksort implementation to work. Assuming that
2; more than 20 probably doesn't make sense. */
comparisons are more expensive than everything else (and this is a
good assumption for Python), it should be 10, which is the cutoff
point: quicksort requires more comparisons than insertion sort for
smaller arrays. */
#define MINSIZE 10
#define MINSIZE 10
/* STACKSIZE is the size of our work stack. A rough estimate is that
/* STACKSIZE is the size of our work stack. A rough estimate is that
...
...
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