diff options
author | mlaier <mlaier@FreeBSD.org> | 2010-06-11 19:35:05 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2010-06-11 19:35:05 +0000 |
commit | 43cad37f433a21222f0841a55be848bf1a9d15ec (patch) | |
tree | f6c51b31a2eeb3a5d7a08ca6b676260cca88d55f /contrib/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp | |
parent | 324886002f85f17304dae0b8970911d2c9f1a6f4 (diff) | |
download | FreeBSD-src-43cad37f433a21222f0841a55be848bf1a9d15ec.zip FreeBSD-src-43cad37f433a21222f0841a55be848bf1a9d15ec.tar.gz |
Cache the last result from if_indextoname for printing. This speeds up
"arp -an" when using a lot of aliases (on a single interface).
A better fix would include a better interface for if_indextoname than
getting the whole address list from the kernel just to find the one
index->name mapping.
Reported & analyzed by: Nick Rogers
MFC after: 3 days
Diffstat (limited to 'contrib/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp')
0 files changed, 0 insertions, 0 deletions