home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.apple2      Discussion about Apple II micros      56,720 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 55,599 of 56,720   
   fadden to Renaud Malaval   
   Re: Programming the GS   
   10 Jul 22 07:55:02   
   
   From: thefadden@gmail.com   
      
   On Saturday, July 9, 2022 at 12:02:37 AM UTC-7, Renaud Malaval wrote:   
   > is it a good idea tu use malloc / calloc or is it better to use handle every   
   where ?    
      
   General rule: malloc allocates from a heap that is managed by the   
   application.  Requesting a handle from the operating system requires making an   
   OS call, which tend to be more expensive.  If you just want a few hundred   
   bytes for storage, use malloc; if    
   you need an entire 64KB bank, call the OS.   
      
   I don't know what the malloc library actually looks like, so this may be   
   terrible advice. :-)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca