Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!hpfcmgw!chan From: chan@hpfcmgw.HP.COM (Chan Benson) Newsgroups: comp.sys.hp Subject: Re: HP Contracts Message-ID: <1080048@hpfcmgw.HP.COM> Date: 9 May 89 15:59:50 GMT References: <547@mmlai.UUCP> Organization: HP Fort Collins, CO Lines: 28 > And while I'm complaining, why does it take so long to create widgets > from the hp widget set. I have what I consider to be a moderate application > with around 1000 widget instantiations, primarily push button and > menu buttons in cascades on about fifteen forms. I found that in order to get > acceptable performance when actually running the application, it was necessary > to create all widgets ahead of time and then manage and unmanage them when > called. The problem is that the application takes about four minutes to > start up. It also takes about 3 meg of memory. I'm doing all the normal > speed up stuff that I can think of. Anybody got any helpful hints? This is not an HP specific problem. In fact, if you want to complain, talk to the people at DEC's Western Research Lab who designed and wrote the stuff. Make sure to ask them how they like programming in C. If you've ever delved into the Xtk internals you'd go gaack! Try profiling a widget program and see how many times malloc and free get called. Help is sort of on the way in the form of gadgets (windowless widgets). Other people listening may have specific suggestions for you, but it sounds like you've already discovered the manage/unmanage trick. As far as other problems, post away. I can't guarantee that I or anyone else will be able to answer them, but it can't hurt *as long as you are also pursuing them through the normal channels*. -- Chan Benson HP Fort Collins chan@hpfcmi.HP.COM you think I'd put my phone number here?