Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!david From: david@elroy.jpl.nasa.gov (David Robinson) Newsgroups: news.software.b Subject: C news vs B news speed Message-ID: <1989Jul9.223927.29156@elroy.jpl.nasa.gov> Date: 9 Jul 89 22:39:27 GMT Organization: Image Analysis Systems Grp, JPL Lines: 20 Henry pointed out that there is not much you can do to newsrun to speed it up without breaking it's robustness. I agree, but you can tweek it a bit for added performence. The first and biggest is to comment out the c7decode lines if you never expect to get encoded news. 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. This reduces the numerous ls, df, and awk calls. I do agree that C news is considerably faster, our Sun-2 had just stepped over the brink and was not able to keep up with the volume, with C news it has been given a reprise. -David -- David Robinson elroy!david@csvax.caltech.edu ARPA david@elroy.jpl.nasa.gov ARPA {cit-vax,ames}!elroy!david UUCP Disclaimer: No one listens to me anyway!