---
title: objc_cache
framework: objectivec
role: collectionGroup
path: objectivec/objc_cache
---

# objc_cache

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

## Overview

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

- [mask](objectivec/1808499-mask.md)
- [occupied](objectivec/1808501-occupied.md)
- [buckets](objectivec/1808503-buckets.md)

## See Also

### Class-Definition Data Structures

- [Method](objectivec/method.md)
- [Ivar](objectivec/ivar.md)
- [Category](objectivec/category.md)
- [objc_property_t](objectivec/objc_property_t.md)
- [IMP](objectivec/imp.md)
- [objc_method_description](objectivec/objc_method_description.md)
- [objc_property_attribute_t](objectivec/objc_property_attribute_t.md)
