Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > prealloced obje...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 1005 of 1041
Post > Topic >>

prealloced objects

by "copx" <copx@[EMAIL PROTECTED] > Jul 17, 2008 at 06:18 AM

How can I pre-allocate memory for objects and reuse that memory, instead
of doing new/dealloc.

I am trying to implement the "no memory allocation after initialization"
paradigm
here for performance and safety reasons. I can do this in C (for structs /
raw memory blocks), but I don't know how to implement it for Objective-C
objects.

Again, I could only find NextStep/Apple specific stuff on the web. How to
do
this in GNU Objective-C (without GNUSTEP)?

Do Objective-C objects even have a constant size? Is is possible to just
do something like object = malloc(sizeof(Object))?
 




 5 Posts in Topic:
prealloced objects
"copx" <copx  2008-07-17 06:18:05 
Re: prealloced objects
Friedrich Dominicus <j  2008-07-17 07:05:48 
Re: prealloced objects
"copx" <copx  2008-07-17 12:24:04 
Re: prealloced objects
Daniel Losch <daniel.l  2008-07-17 13:38:30 
Re: prealloced objects
Gregory Weston <uce@[E  2008-07-17 09:03:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 11:07:44 CDT 2008.