Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!mtxinu!sybase!rhoda@mercury.sybase.com From: rhoda@mercury.sybase.com (Rhoda Neimand) Newsgroups: comp.windows.ms.programmer Subject: Re: Linked List in Global Heap? Message-ID: <13295@sybase.sybase.com> Date: 13 Jun 91 16:02:38 GMT Sender: news@Sybase.COM Organization: Sybase, Inc. Lines: 22 >In article (Stephen Chung) writes: >I am writing an application that uses more than 64K of data memory. Most >of the data is organized in numerous linked-lists, mainly smally nodes. >Any pointers on how to allocate the lists in the global heap? If I >do a GlobalAlloc, won't that slow Windows down incredibly because of the >large number of memory blocks? And I believe Windows has a limit on >the number of handles. ALso, GlobalAlloc-ing the nodes will mean a >GLobalLock-GlobalUnlock pair for EVERY pointer access. Slow. > >Please reply to this account. Thanks in advance for your help. I, and I'm sure others, would like to see responses on the net. I'm going to be doing lots of Local and Global Allocs and would like to hear people's opinions and experiences regarding memory allocation. P.S. Sorry for the previous blank posting. ---------------------------------------------------------------------- Rhoda Neimand [I speak for myself] {sun,lll-tis,pyramid,pacbell}!sybase!rhoda -or- rhoda@sybase.com "I didn't want to, Jim" Mr. Spock in _This Side Of Paradise_ ----------------------------------------------------------------------