aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_list.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-17 02:21:18 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-02-23 02:37:11 -0700
commit651aa5e8e497a12dc14d31f383777f99b92a2739 (patch)
tree458ebb9f05ec821747a2f3267b4def1fab085db0 /lib/std/array_list.zig
parent107992d50e6a07d98b325f8768882f17e454b4a4 (diff)
downloadzig-651aa5e8e497a12dc14d31f383777f99b92a2739.tar.gz
zig-651aa5e8e497a12dc14d31f383777f99b92a2739.zip
std.http.Client: eliminate arena allocator usage
Before, this code constructed an arena allocator and then used it when handling redirects. You know what's better than having threads fight over an allocator? Avoiding dynamic memory allocation in the first place. This commit reuses the http headers static buffer for handling redirects. The new location is copied to the beginning of the static header buffer and then the subsequent request uses a subslice of that buffer.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions