🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3216

Linked list in Global Heap?

#3216
From: Stephen Chung
Date: Wed, 12 Jun 1991 22:25
13 lines
994 bytes
Hi NetLanders,

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.

- Stephen
Technical Details
Message-ID: <1991Jun12.222545.29744@cunixf.cc.columbia.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!stephenc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!stephenc
From: stephenc@cunixf.cc.columbia.edu (Stephen Chung)
Newsgroups: comp.windows.ms.programmer
Subject: Linked list in Global Heap?
Message-ID: <1991Jun12.222545.29744@cunixf.cc.columbia.edu>
Date: 12 Jun 91 22:25:45 GMT
Organization: Columbia University
Lines: 13