performance: exclude lyrics if they are not enabled

This commit is contained in:
lb-a
2026-04-30 12:00:58 +02:00
parent 7a27845e75
commit 9618108f2a
3 changed files with 36 additions and 10 deletions

View File

@@ -31,6 +31,9 @@ type Downloader struct {
barStarted atomic.Int32
}
// downloadBufferSize sizes HTTP-to-disk copies. 1 MiB cuts read/write syscalls
// ~32x vs Go's default 32 KiB io.Copy buffer, which matters for multi-MB FLAC
// streams off CDNs that can sustain high per-connection throughput.
const downloadBufferSize = 1 << 20
func New() *Downloader {