From owner-freebsd-current Sun Jan 24 15:05:19 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA00946 for freebsd-current-outgoing; Sun, 24 Jan 1999 15:05:19 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA00936 for ; Sun, 24 Jan 1999 15:05:17 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id PAA05248; Sun, 24 Jan 1999 15:04:42 -0800 (PST) (envelope-from dillon) Date: Sun, 24 Jan 1999 15:04:42 -0800 (PST) From: Matthew Dillon Message-Id: <199901242304.PAA05248@apollo.backplane.com> To: Mikhail Teterin Cc: current@FreeBSD.ORG Subject: Re: sysctl oids (was: Re: kvm question) References: <199901242244.RAA04500@kot.ne.mediaone.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a silly argument. Unless the operation in question needs to be run a thousand times a second, a string is just fine as a lookup mechanism. Duh. Besides, you can always cache the translation. -Matt Matthew Dillon :Julian Elischer once stated: : :=> Nonsense. There are plenty of contexts in which a number makes far :=> more sense than a name -- pretty much anything in any network stack :=> other than Chaosnet, for example. If any of us ever make good on the :=> threat of SNMP integration, having fixed numerical identifiers will :=> be a requirement. : :=SNMP will require a translation layer anyhow.. numbers cannot and :=should not be used. They are not easily maintained in the face of :=multiple external modules being dynamically loadable. : :=That is at least my opinion.. you may and do disagree. I guess you will :=say that numbers are just as dynamic, etc.etc. well I just think that :=in the REAL WORLD, as opposed to the theoretical world, names (which :=require no co-ordination between authors), are a better choice than :=numbers, which require some central naming authority. : :Pardon my intrusion, but I strongly dislike the very thought about :my computer looking-up the same string more then once or twice. If it :counts -- I'd take a number over a string anytime anywhere other :then in a documentation. : : -mi : :To Unsubscribe: send mail to majordomo@FreeBSD.org :with "unsubscribe freebsd-current" in the body of the message : To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message