Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!sdrc!cinnet!yun From: yun@cinnet.COM (Yun-seng Chao) Newsgroups: news.software.b Subject: Re: C news vs B news speed Message-ID: <1018@cniysc.cinnet.COM> Date: 14 Jul 89 01:58:02 GMT References: <1989Jul12.210254.8631@utzoo.uucp> Organization: CinNet, Cincinnati, Ohio Lines: 19 From article <1989Jul12.210254.8631@utzoo.uucp>, by henry@utzoo.uucp (Henry Spencer): > In article <1989Jul9.223927.29156@elroy.jpl.nasa.gov> david@elroy.jpl.nasa.gov (David Robinson) writes: >>The other thing I have done which helps if you get many small >>batches (ie from a once a minute NNTP sender) is to rewrite 'spacefor' >>and 'sizeof' into C if you can. Both are trivial to write but you >>may need a statfs() system call for the former... > > I'm contemplating doing some of this myself, in fact, although if I do > use C for spacefor, it will probably popen("df") to do the actual space > finding -- that job is just too system-dependent. Uh, wasn't there something called "bdf" posted last year that was able to parse the Sys V "df" command? Why not use some of that code for usg systems to do some of this parsing (with acknowledgements to the original author, of course)? -- ------------------------------------------------------------ Yun-seng Chao Cincinnati Network cinnet!yun Voice # (513) 777-5614