Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!decwrl!ucbvax!westhawk.UUCP!thp From: thp@westhawk.UUCP ("Timothy H Panton.") Newsgroups: comp.windows.x.motif Subject: Re: Optimization / Speedups Message-ID: <9008210913.AA02387@westhawk.uucp> Date: 21 Aug 90 09:13:25 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 15 We found that malloc() was called _very_ often during widget creates (I'm talking about the HP widgets, but I guess the same applies). It is well worth shopping around for a fast malloc. Last time I looked the malloc() in Gnu was about twice the speed of that in libc.a (HPUX 6.5) The other thing that made a big difference to us was creating all a widget's children with XtCreateWidget() and then doing a XtManageChildren on the whole batch. +----------------------------------------------------------------------------+ |Tim Panton, Westhawk Ltd. "... avoiding vain and profane babblings." | |Phone: +44 92822574 -1 Timothy 6:20. | |uucp : ..!mcvax!ukc!westhawk!thp | |Paper: Westhawk Ltd. 26 Rydal Grove, Helsby, Cheshire, WA6 OET. UK. | +----------------------------------------------------------------------------+