diff options
author | 2013-08-01 19:03:11 +0000 | |
---|---|---|
committer | 2013-08-01 19:03:11 +0000 | |
commit | 918dda865505c187c358d3262c038884fa21d879 (patch) | |
tree | a8ab855048ccbe6d7261ca5d832fe340e9046cfe /lib/libc/stdlib/random.c | |
parent | Create more inodes on the sparc64 installation ramdisk. The new ratio matches (diff) | |
download | wireguard-openbsd-918dda865505c187c358d3262c038884fa21d879.tar.xz wireguard-openbsd-918dda865505c187c358d3262c038884fa21d879.zip |
Provide local implementations of if_nametoindex(3) and if_indextoname(3)
that make use of the cache of addresses populated by the ifa_load on
startup to save the trouble of calling expensive getaddrinfo(3) up to
four times per rule. Performance wise this change provides a speed up
factor of 20 with a 11k line ruleset on a machine with 150 VLANs and 250
IP addresses (20 seconds down to 1 in this case).
"wow!" henning, ok benno, florian
Diffstat (limited to 'lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions