TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Michael Duffy
from: David Johnson
date: 1994-11-04 14:38:00
subject: Intelligent Memory Alloca

MD>Should you just pick a goodly large number (say, 100Meg) leaving the
MD>memory uncommitted till you need it, then grow the suballoced heap? 
MD>Should you take the 512Meg that your application is limited to?  Or
MD>should you pick a smaller amount to allocate, based on calculations
MD>that I don't know about?  

Pick a large number.. 512M is a nice round number..


MD>   Do you handle memory differently depending on the application? 
MD>For instance, one of my applications will have sets of linked lists
MD>(the length of which I don't know) where memory will be allocated in
MD>lots of tiny chunks. Another application will have large bitmapped
MD>images, eating up 200k+ chunks each.  Is it better to use
MD>suballocated memory in one case and plain old nonshared memory in
MD>another?

suballocated memory can be shared or non shared. What was your question
again...

___
 * MR/2 2.1 NR * Jesus loves you.  Everyone else thinks you're a jerk!

--- QScan v1.067b

* Origin: Programmer's Guild BBS, Hamilton, Ont. (1:244/317)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 244/317 300 99 12/12 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.