mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
* Document additional go tool profiling flags * Add a regex cache to avoid compiling regular expressions all the time * Reduce max buffer capacity * Prefer bytes to strings Strings are immutable and hence we need to create a new one all the time when operation on them * Some more changes * More bytes * Use writer.Write instead of fmt.FPrintf * Clear regex cache when resetting redactors * Logs errors when redactors error since they get swallowed * Add an improvement comment * Limit the number of goroutines spawned when redacting * Minor improvement * Write byte slices one at a time instead of concatenating them first * Add a test for writeBytes * Additional tests