vapor/vapor

FileMiddleware Hashing should be streaming

Open

#3,415 创建于 2026年1月5日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Swift (1,512 fork)batch import
good first issuehelp wanted

仓库指标

Star
 (26,062 star)
PR 合并指标
 (平均合并 75天 21小时) (30 天内合并 9 个 PR)

描述

Please summarize your feature request

Don't load the whole file into memory

Describe the functionality you're seeking in more detail

For calculating the hashes of files for etags, we currently load the whole file into memory. This is obviously inefficient (see #3405) and Crypto actually offers update() functions to do streaming hashing. We should use that

Have you considered any alternatives?

No response

贡献者指南