github.com/jfcg/sorty@v1.2.0/maxv.go (about) 1 // +build tuneparam 2 3 /* Copyright (c) 2019, Serhat Şevki Dinçer. 4 This Source Code Form is subject to the terms of the Mozilla Public 5 License, v. 2.0. If a copy of the MPL was not distributed with this 6 file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 */ 8 9 package sorty 10 11 var ( 12 // Mli is the maximum slice length for insertion sort in 13 // Sort*() except SortS(), SortB() and Sort(). 14 Mli = 100 15 16 // Hmli is the maximum slice length for insertion sort in 17 // SortS(), SortB() and Sort(). 18 Hmli = 40 19 20 // Mlr is the maximum slice length for recursion when there are available 21 // goroutines. So Mlr+1 is the minimum slice length for new sorting goroutines. 22 Mlr = 496 23 )