HomeFreeBSD

loader: ip: Do not call getsecs so much

Description

loader: ip: Do not call getsecs so much

getsecs is very costly, reuse the values we got before.

Fetching a ~30MB kernel with the tftp command use to take ~26 seconds
and now it's ~18 seconds.

Reviewed by: imp, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33408

Details

Provenance
manuAuthored on Dec 9 2021, 2:46 PM
Reviewer
imp
Differential Revision
D33408: loader: ip: Do not call getsecs so much
Parents
rG4f36ed513cc8: loader: tftp: Don't let tftp timeout
Branches
Unknown
Tags
Unknown