expressjs / expressjs/multer

Allocate full buffer if `Content-Length` is sent for part

Open
#183 19 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
12.1k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
21

Description

The memory storage should preallocate the full buffer if the client provides the `Content-Length` header for that part. This would save us from peaking at twice the memory as the file is, and probably increase performance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.