Xref: utzoo comp.windows.x.motif:3392 comp.windows.x:37674 comp.windows.ms:13882 comp.windows.ms.programmer:3153 comp.sys.mac.programmer:26094 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!stan!marvin!toml From: toml@marvin.Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x.motif,comp.windows.x,comp.windows.ms,comp.windows.ms.programmer,comp.sys.mac.programmer Subject: Re: Neuron Data's Open Interface Message-ID: Date: 18 Jun 91 14:18:33 GMT References: <1991May26.044051.5284@mstr.hgc.edu> <6592@vela.acs.oakland.edu> <1991May28.064919.16358@mstr.hgc.edu> <1991Jun17.184618.10500@eng.umd.edu> Sender: toml@solbourne.com (Tom LaStrange) Organization: Solbourne Computer, Inc. Lines: 24 In-Reply-To: stripes@eng.umd.edu's message of 17 Jun 91 18:46:18 GMT > So how do window-less objects make something faster? Less windows for the > server to deal with, smaller working set, easyer to decide where events go. > Bigger working set on the client side, larger working set, harder to decide > what events go with what objects. I can think of a couple things that I've encountered. What about creating a scrolling menu(list) with 1000 entries (which is not uncommon). If you used a sperate window for each menu item, it'll certainly take longer to create. If you have a popup menu with 50 items, each with it's own window, you would have to handle at least 50 expose events to paint the thing. If they're windowless, a simple intersection test tells you if you need to repaint a given item. You may consider menus a special case but the original twm code used a seperate window for each menu item because I thought that was the "right tool for the job" (haven't I heard that someplace before? :-) Windowless menu items make menus MUCH faster. In general, I agree that using windowed objects is much easier for the application writer / toolkit developer to deal with, but there are times when the baggage of a window is just too much to carry. -- Tom LaStrange toml@Solbourne.COM