SHA256 from file descriptor

Dridi Boukelmoune dridi at varni.sh
Tue May 21 17:52:29 UTC 2024


On Tue, May 21, 2024 at 5:38 PM Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
>
> Dridi Boukelmoune writes:
>
> > Are we interested in that kind of change (see attached diff) or do we
> > strictly stick to the original source that was bundled in libvarnish?
>
> What's the usecase ?
>
> If regular file:  Why not mmap and save the kernel/userland copies ?

Because the code from which I extracted this function was doing a copy
while computing the checksum on the fly, so I didn't consider mmap
when I extracted the read part of the code.

Dridi


More information about the varnish-dev mailing list