aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/headers.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-11 23:00:30 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-11 23:16:24 +0100
commit7f9c70db17b5dc15aafa142e24d6fdb0da4054ca (patch)
tree070fcb7e2767d9ac9ad9f3907c2c638fe1fbd2b2 /src/server/headers.nim
parent6551733999a88985aa80c00b646102a267f8575b (diff)
downloadchawan-7f9c70db17b5dc15aafa142e24d6fdb0da4054ca.tar.gz
loader: refcount LoaderBuffer pages
One less unsafe/error prone construct. Refcounting the page as seq is unfortunate, but still miles better than zero-filling a non-refcounted array. (Plus it works better for base64 decoding.) The len field is still necessary, because old runtime doesn't support setLenUninit. Oh well, it's one wasted word, not the end of the world. As for the chunks, it looks like the allocator still uses small ones for the seq, so we're good.
Diffstat (limited to 'src/server/headers.nim')
0 files changed, 0 insertions, 0 deletions