Interesting results for getservbyname() performance (and possible changes for /etc/services)
Callum Lerwick
seg at haxxed.com
Thu Jan 12 18:58:49 UTC 2006
Err, how often are service lookups done? How performance critical is
this, really? Seems to me an application doing a large number of lookups
is best off just slurping in /etc/services itself (Or just keep its own
service list) and building its own hash table in RAM or whatnot. (Which
IIRC is what stuff like nmap and ethereal do...)
Benchmark a real application first, then optimize. ;P
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20060112/d92a6d9d/attachment.sig>
More information about the fedora-devel-list
mailing list