reduce the memory impact of obiuniq.

This commit is contained in:
Eric Coissac
2024-11-27 13:30:16 +01:00
parent d29a56dcbf
commit 40fb4e9767
9 changed files with 145 additions and 8 deletions

View File

@ -27,6 +27,7 @@ var _PprofMudex = 10
var _PprofGoroutine = 6060
var _Quality_Shift_Input = byte(33)
var _Quality_Shift_Output = byte(33)
var _Read_Qualities = true
type ArgumentParser func([]string) (*getoptions.GetOpt, []string)
@ -259,6 +260,10 @@ func CLIBatchSize() int {
return _BatchSize
}
func CLIReadQualities() bool {
return _Read_Qualities
}
// SetDebugOn sets the debug mode on.
func SetDebugOn() {
_Debug = true
@ -269,6 +274,10 @@ func SetDebugOff() {
_Debug = false
}
func SetReadQualities(status bool) {
_Read_Qualities = status
}
// SetWorkerPerCore sets the number of workers per CPU core.
//
// It takes a float64 parameter representing the number of workers