Dmitriy from @siderolabs did a couple of optimization changes to my `go-uefi` library.

Results in a reduction of their memory usage from 1.6 GiB to 80 MiB(!)

https://github.com/Foxboron/go-uefi/pull/23

https://github.com/Foxboron/go-uefi/pull/24

#Golang #SecureBoot #UEFI #sbctl

authenticode: reduce memory allocations by DmitriyMV · Pull Request #23 · Foxboron/go-uefi

This PR does those things: If we know that io.ReaderAt also implements io.Seeker we can calculate the whole size, those avoiding unnecessary reallocations during buffer growth. Sort using generics...

GitHub
@Foxboron @siderolabs the kind of PRs that you love

@edu4rdshl @Foxboron @siderolabs exactly what I wanted to say.
Also, the more efficient code is not even unreadable.

Lovely