-
Notifications
You must be signed in to change notification settings - Fork 6
/
maxc.go
25 lines (19 loc) · 844 Bytes
/
maxc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//go:build !tuneparam
// +build !tuneparam
/* Copyright (c) 2019, Serhat Şevki Dinçer.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package sorty
// MaxLenIns is the default maximum slice length for insertion sort.
const MaxLenIns = 60
// MaxLenInsFC is the maximum slice length for insertion sort when
// sorting strings or calling [Sort]().
const MaxLenInsFC = 30
// MaxLenRec is the default maximum slice length for recursion when there is goroutine
// quota. So MaxLenRec+1 is the minimum slice length for new sorting goroutines.
const MaxLenRec = 600
// MaxLenRecFC is the maximum slice length for recursion when
// sorting strings or calling [Sort]().
const MaxLenRecFC = 300