4 ms·
> But if you know the application very well then memory management isn't too big a deal. Agreed. A related case is with Objective-C's memory management scheme
by aufreak3 16y ago
> But if you know the application very well then memory management isn't too big a deal.
Agreed.
A related case is with Objective-C's memory management scheme which isn't a full GC, but lets you scope your memory allocations. It gets you a level of control that is somewhere between a GC and the kind that boost::shared_ptr does ... neither having the "wait for the trashman" problem that GC brings, nor overdoing the reference count touching like boost can get you into.
- masklinn 16y ago> A related case is with Objective-C's memory management scheme which isn't a full GC, but lets you scope your memory allocations. Obj-C 1 right? I believe Obj-C 2 (on OSX, not iOS) has an optional GC, at least for the objective part. Or would I be wrong?
- mishmash 16y agoYeah, you're right it does. And many of the C-based APIs also have functions to put memory "into" the collector.