objc_cache

Performance optimization for method calls. Contains pointers to recently used methods.

Declaration 宣言

struct objc_cache
{
unsigned int mask;
unsigned int occupied;
Method buckets[1];
};

Overview 概要

To limit the need to perform linear searches of method lists for the definitions of frequently accessed methods—an operation that can considerably slow down method lookup—the Objective-C runtime functions store pointers to the definitions of the most recently called method of the class in an objc_cache data structure.

Topics 話題

Fields

See Also 参照

Class-Definition Data Structures