Path: utzoo!attcan!uunet!husc6!mailrus!tut.cis.ohio-state.edu!rutgers!ukma!david From: david@ms.uky.edu (David Herron -- One of the vertebrae) Newsgroups: comp.mail.uucp Subject: Re: Making /usr/lib/uucp/paths a _binary_ database Keywords: pathalias UUCP smail Message-ID: <10796@s.ms.uky.edu> Date: 3 Jan 89 03:25:50 GMT References: <486@fallst.UUCP> <318@mpx2.UUCP> Reply-To: david@ms.uky.edu (David Herron -- One of the vertebrae) Organization: U of Kentucky, Mathematical Sciences Lines: 34 In article <318@mpx2.UUCP> erik@mpx2.UUCP (Erik Murrey) writes: >In article <486@fallst.UUCP> tkevans@fallst.UUCP (Tim Evans) writes: >>Please forgive me if this has been discussed before. :-) >> >>The 'paths' database produced by 'pathalias' has grown to nearly >>900K bytes in size. Granted that I'm not real well connected, > >I think that a lot of people have forgotten about a neat little >program called "pathprune", posted a little while back. It >essentially strips out the un-needed paths from your pathalias output. well ok ... but what this guy really wants, I think, is to put the paths file into a dbm file. Then when smail wants to find a path it only has to open up the database and do a few quick things to find the path. (dbm is fast) It could even be fixed up to heuristically do a few different lookups, for instance if it's got a full domain name and the lookup fails it could repeatadly chop off hunks from the LHS until it found a matching gateway. Building a dbm file is real simple ... oh, and one of the nifty things in B-News v3.0 is a public domain implementation of dbm so the old complaint that SysV doesn't have dbm doesn't wash anymore. Yay! (I just looked through the code for the beta version last night and really like what I saw). -- <-- David Herron; an MMDF guy <-- ska: David le casse\*' {rutgers,uunet}!ukma!david, david@UKMA.BITNET <-- Now I know how Zonker felt when he graduated ... <-- Stop! Wait! I didn't mean to!