Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!dsinc.DSI.COM!syd From: syd@dsinc.DSI.COM (Syd Weinstein) Newsgroups: news.software.b Subject: C-news and SCO Xenix 2.3.3 Keywords: slow relaynews Message-ID: <1991Apr24.030223.7753@DSI.COM> Date: 24 Apr 91 03:02:23 GMT Sender: syd@DSI.COM (Syd Weinstein) Reply-To: syd@DSI.COM Organization: Datacomp Systems, Inc., Huntingdon Valley, PA 19006 Lines: 27 Finally had time to track down a problem with C News and SCO Xenix 2.3.3. Thanks Geoff for putting up with my problem reports, but it did take a long time to figure out... Symptom: relaynews takes 15+ cpu seconds to get started, then runs very fast thereafter. After much profiling found that the problem was in loading the active file. Traced it to strchr. It appears that SCO's strchr is probably doing a strlen first then the search for the character. Works ok on short strings. Works lousey on the entire active file when using strchr to find the newlines and break it apart. Reconfigured C-news to use the fake (supplied) strchr and its friends. Now it starts in .1 cpu seconds or less and works like a charm. Solution: If you are running SCO Xenix, tell build you don't have strchr and all of its friends even though you do. -- ===================================================================== Sydney S. Weinstein, CDP, CCP Elm Coordinator Datacomp Systems, Inc. Voice: (215) 947-9900 syd@DSI.COM or dsinc!syd FAX: (215) 938-0235