Summary of ARC and MRC, and summary of arcmrc
ARC and MRC Memory Management
From MRC-> ARC is to transfer the memory management part from the developer's function to the runtime outside the function. since the development of runtime is simple and the logic level is high, the chance of runtime errors is very small. In addition, the compiler optimization makes the running speed very high.
Features of ARC:
- Call dealloc, retain, and release that cannot be displayed (the [super dealloc] method cannot be called in the Custom delloc method of ARC. the @ selector (retain) and @ selector (release) methods cannot be called)
- NSAllocateObject and NSDeallocateObject cannot be used to create and release objects.
- The Object Pointer cannot be used in the C-language struct.
- Id and void * cannot be converted at will
- You cannot use the NSAID utoreleasepool object.
- The memory zone cannot be used. in order to automatically retain-release, ARC has made some restrictions on memory management, that is, it cannot name the compiler name starting with "new", that is, it cannot name attributes starting with "new, unless a getter method with different life cycles is specified.