mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
perf(fetcher): save 8 bytes in the RequestBuilder struct
before: ``` // request_builder.go:25 | Size: 64 (Optimal: 56) type RequestBuilder struct { headers http.Header ■ ■ ■ ■ ■ ■ ■ ■ clientProxyURL *url.URL ■ ■ ■ ■ ■ ■ ■ ■ useClientProxy bool ■ □ □ □ □ □ □ □ clientTimeout int ■ ■ ■ ■ ■ ■ ■ ■ withoutRedirects bool ■ ignoreTLSErrors bool ■ disableHTTP2 bool ■ □ □ □ □ □ proxyRotator *proxyrotator.ProxyRotator ■ ■ ■ ■ ■ ■ ■ ■ feedProxyURL string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ } ``` after: ``` // request_builder.go:25 | Size: 56 type RequestBuilder struct { headers http.Header ■ ■ ■ ■ ■ ■ ■ ■ clientProxyURL *url.URL ■ ■ ■ ■ ■ ■ ■ ■ clientTimeout int ■ ■ ■ ■ ■ ■ ■ ■ useClientProxy bool ■ withoutRedirects bool ■ ignoreTLSErrors bool ■ disableHTTP2 bool ■ □ □ □ □ proxyRotator *proxyrotator.ProxyRotator ■ ■ ■ ■ ■ ■ ■ ■ feedProxyURL string ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ } ```
This commit is contained in:
parent
112494bb66
commit
d1a3f98df9
1 changed files with 1 additions and 1 deletions
|
@ -25,8 +25,8 @@ const (
|
||||||
type RequestBuilder struct {
|
type RequestBuilder struct {
|
||||||
headers http.Header
|
headers http.Header
|
||||||
clientProxyURL *url.URL
|
clientProxyURL *url.URL
|
||||||
useClientProxy bool
|
|
||||||
clientTimeout int
|
clientTimeout int
|
||||||
|
useClientProxy bool
|
||||||
withoutRedirects bool
|
withoutRedirects bool
|
||||||
ignoreTLSErrors bool
|
ignoreTLSErrors bool
|
||||||
disableHTTP2 bool
|
disableHTTP2 bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue