mirror of
https://github.com/aykhans/sarin.git
synced 2026-08-29 03:24:33 +00:00
- Reuse value slices in place instead of clear()+realloc when a map's key set is static (skipped when scripts may mutate the maps). - Use SetBodyString to drop the []byte(Body) copy, build the Cookie header with a strings.Builder, and skip QueryArgs when no params. - Cache the values map when all values are literal, and share one empty map when none are configured. - Reuse a single bytes.Buffer across template renders per worker.